feathers-studio / telegraf-docs

Documentation for Telegraf - the modern Bot API framework
https://telegraf.js.org
MIT License
303 stars 32 forks source link

messages.getHistory #20

Open shabanovtg opened 8 months ago

shabanovtg commented 8 months ago

How I can get history messages, when I added bot to channel?

MKRhere commented 8 months ago

No, you cannot. This method is from the MTProto API (for user accounts) and not the Bot API (https://core.telegram.org/bots/api). Bots cannot access get message history. They can only listen for new messages.