telegram-bot-sdk icon indicating copy to clipboard operation
telegram-bot-sdk copied to clipboard

Getting message list of a channel

Open art-zhitnik opened this issue 1 year ago • 1 comments

PHP version

7.4

irazasyed/telegram-bot-sdk version

3.9

Laravel version (if any)

No response

Code To Reproduce the bug

None

Error stacktrace (if any)

Sorry for posting as a bug, but I don't find any way to ask. My case is to parse some open news channel in telegram.

art-zhitnik avatar Jan 24 '24 10:01 art-zhitnik

I hope I can do it with a bot, probably using api method https://core.telegram.org/method/messages.getHistory How can I make api call with your libriry?

art-zhitnik avatar Jan 24 '24 10:01 art-zhitnik

You're looking at Telegram Core API which is different from Bot API.

You can't retrieve a channel's message unless your bot is added to your channel with appropriate permissions.

irazasyed avatar Mar 11 '24 03:03 irazasyed