telegram-bot
telegram-bot copied to clipboard
"save_context" method is not working properly in group chat
When using Poller mode, save_context does not trigger passed method when used in group chat but works in bot's chat.
Below is when used in group chat:
It does not fetch updates:
When used in bot's chat save_context triggers get_location method passed to it:
It does fetch updates:
Questions:
- May it be because of group chat id?
- Or some new restrictions about fetching updates in Telegram?(Could not find any info about that)
Context is based on session. See how to configure session key in docs https://github.com/telegram-bot-rb/telegram-bot#session
By default it only uses user id: https://github.com/telegram-bot-rb/telegram-bot/blob/master/lib/telegram/bot/updates_controller/session.rb#L33