Skip to content

Instantly share code, notes, and snippets.

@Birdi7
Last active July 18, 2019 20:09
Show Gist options
  • Save Birdi7/88faac3239ebd79405408d801adac5c3 to your computer and use it in GitHub Desktop.
Save Birdi7/88faac3239ebd79405408d801adac5c3 to your computer and use it in GitHub Desktop.
Aiogram Text bug listing
from aiogram import Bot, Dispatcher, executor, types
from aiogram.dispatcher.filters.builtin import Text
API_TOKEN = 'BOT_TOKEN'
# Initialize bot and dispatcher
bot = Bot(token=API_TOKEN)
dp = Dispatcher(bot)
@dp.message_handler(Text(equals='TEXT', ignore_case=True))
async def send_welcome(message: types.Message):
print(message.text)
if __name__ == '__main__':
executor.start_polling(dp, skip_updates=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment