You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 14, 2023. It is now read-only.
I instantied a bot like the example in the README.md:
require'telegram_bot'bot=TelegramBot.new(token: '[YOUR TELEGRAM BOT TOKEN GOES HERE]')bot.get_updates(fail_silently: true)do |message|
puts"@#{message.from.username}: #{message.text}"command=message.get_command_for(bot)message.replydo |reply|
casecommandwhen/greet/ireply.text="Hello, #{message.from.first_name}!"elsereply.text="#{message.from.first_name}, have no idea what #{command.inspect} means."endputs"sending #{reply.text.inspect} to @#{message.from.username}"reply.send_with(bot)endend
But the bot keep getting the same message forever. Shouldn't it "clear" the message in the Telegram server? Or at least count inside the gem which was the last message received?
If that is not supposed to do that, what is the recommended way to handle it?