2021-05-05 02:59:30 +00:00
|
|
|
from telegram.ext import Updater
|
|
|
|
from config import TOKEN
|
2021-05-05 03:10:01 +00:00
|
|
|
from func import start_handler, chat_content_handler
|
2021-05-05 02:59:30 +00:00
|
|
|
|
|
|
|
updater = Updater(token=TOKEN, use_context=True)
|
|
|
|
dispatcher = updater.dispatcher
|
|
|
|
|
|
|
|
dispatcher.add_handler(start_handler)
|
2021-05-05 03:10:01 +00:00
|
|
|
dispatcher.add_handler(chat_content_handler)
|
2021-05-05 02:59:30 +00:00
|
|
|
|
|
|
|
updater.start_polling()
|
|
|
|
updater.idle()
|