Update 'dogetipbot_telegram.py'
This commit is contained in:
parent
cc0b11f3e7
commit
df4062f9e6
@ -13,6 +13,7 @@ import io
|
|||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
import argparse
|
import argparse
|
||||||
|
import asyncio
|
||||||
|
|
||||||
# Parsing arguments
|
# Parsing arguments
|
||||||
|
|
||||||
@ -300,7 +301,8 @@ def users(update: Update, context: CallbackContext):
|
|||||||
# Telegram initialisation
|
# Telegram initialisation
|
||||||
|
|
||||||
myBot = Bot(TELEGRAM_API_KEY)
|
myBot = Bot(TELEGRAM_API_KEY)
|
||||||
updater = Updater(myBot)
|
queue = asyncio.Queue()
|
||||||
|
updater = Updater(myBot, queue)
|
||||||
|
|
||||||
dispatcher = updater.dispatcher
|
dispatcher = updater.dispatcher
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user