Update 'dogetipbot_telegram.py'

This commit is contained in:
nyanloutre 2023-06-13 16:44:02 +02:00
parent cc0b11f3e7
commit df4062f9e6
1 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,7 @@ import io
import requests
import json
import argparse
import asyncio
# Parsing arguments
@ -300,7 +301,8 @@ def users(update: Update, context: CallbackContext):
# Telegram initialisation
myBot = Bot(TELEGRAM_API_KEY)
updater = Updater(myBot)
queue = asyncio.Queue()
updater = Updater(myBot, queue)
dispatcher = updater.dispatcher