mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-10-23 17:36:26 +02:00
change filters to Filters on code snippet
parent
03718c4370
commit
07b7a6fa40
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ def main():
|
|||
dp = updater.dispatcher
|
||||
|
||||
# on noncommand i.e message - echo the message on Telegram
|
||||
dp.add_handler(MessageHandler(Filters.text & ~filters.command(only_start=true), echo))
|
||||
dp.add_handler(MessageHandler(Filters.text & ~Filters.command(only_start=true), echo))
|
||||
|
||||
# Start the Bot
|
||||
updater.start_polling()
|
||||
|
|
Loading…
Reference in a new issue