V
V
Vlad2422022-04-08 14:02:14
Python
Vlad242, 2022-04-08 14:02:14

Telegram Bot Weebhook Not Working?

uid = update.message.from_user.id
AttributeError: 'CallbackContext' object has no attribute 'message'

def start(update: Update, context: CallbackContext):
    # Get user Telegram ID
    uid = str(update.message.from_user.id)
    cid = update.message.chat_id
    # Fimd user in our database
    user = db.getUserByID(int(uid))

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question