A
A
Azat Kiberov2020-01-01 12:26:32
API
Azat Kiberov, 2020-01-01 12:26:32

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

2 answer(s)
A
Alex, 2020-01-01
@Kozack

https://core.telegram.org/method/channels.getMessages

H
hesy, 2020-01-01
@hesy

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], ]);

https://docs.madelineproto.xyz/API_docs/methods/ch...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question