Update 'dogetipbot_telegram.py'

This commit is contained in:
nyanloutre 2023-06-13 16:37:32 +02:00
parent de99d17926
commit 134eb1ca05
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
from telegram.ext import Updater, CommandHandler, CallbackContext
from telegram.constants import ParseMode
from telegram import Update
from telegram import Update, Bot
from pycoin.symbols.doge import network
from pycoin.encoding.hexbytes import b2h_rev, h2b, h2b_rev
from sqlalchemy import create_engine, Column, Integer, String
@ -299,7 +299,9 @@ def users(update: Update, context: CallbackContext):
# Telegram initialisation
updater = Updater(token=TELEGRAM_API_KEY, use_context=True)
myBot = Bot(TELEGRAM_API_KEY)
updater = Updater(myBot)
dispatcher = updater.dispatcher
start_handler = CommandHandler("start", start)