Last active
July 18, 2019 20:09
-
-
Save Birdi7/88faac3239ebd79405408d801adac5c3 to your computer and use it in GitHub Desktop.
Aiogram Text bug listing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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