Answer the question
In order to leave comments, you need to log in
How to parse api telegram channel get php with a request similar to api vk?
I wanted to parse a telegram channel using the api method without any problems using a php get request, but I didn’t find anything detailed.
Here is an analogue of parsing in the social network VK to parse the group like this.
https://api.vk.com/method/wall.get?v=5.103&filter=... .
Does anyone know the same simple method for parsing a telegram channel with a single line get request?
Answer the question
In order to leave comments, you need to log in
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [InputMessage, InputMessage], ]);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question