0

How can I get the last telegram channel post in PHP?

For example, I can get the channel member count with this:

file_get_contents("https://api.telegram.org/botTOKEN/getChatMembersCount?chat_id=@channelusername");
duplode
  • 33,731
  • 7
  • 79
  • 150
Ali YQB
  • 73
  • 1
  • 2
  • 8

1 Answers1

0

You can't, directly.
To do that you have to use $update['channel_post']['message_id'] then store it into your database.

Pato05
  • 326
  • 1
  • 14