You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pyTelegramBotAPI 4.14.0 | Windows | Python 3.12.0
So I wanted create some callback query handlers in my bot using this script: https://pastebin.com/wZfumXXU
But it don't worked. When I tried to to add print statement in the start of my function it also printed nothing.
Then I tried this easy script: https://pastebin.com/iZAW51jg
But it also don't worked for me
Hi, Caportabow! Please, provide your script exception traceback, when its failed. Or, you can add next rows to your code, to get more info about your program: import logging logger = logging.getLogger('TeleBot').setLevel(logging.INFO)
#---#
All contents of data/temp/ have been deleted.
#---#
Successfully Started!
Bot - @IAmBetterBot
#---#
2023-12-10 00:26:12,608 (__init__.py:1040 MainThread) INFO - TeleBot: "Starting your bot with username: [@IAmBetterBot]"
2023-12-10 00:26:12,609 (__init__.py:1057 MainThread) INFO - TeleBot: "Started polling."
This is full log. My bot don't fail or whenever, it just don't have any effect if I push the buttons
File "test.py", line 10, in start
markup = types.InlineKeyboardMarkup()
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'types' has no attribute 'InlineKeyboardMarkup'
import telebot, telebot.types as types
Now works fine.
Repository owner locked and limited conversation to collaborators on Dec 10, 2023
Activity
Roninon commentedon Dec 9, 2023
Hi, Caportabow! Please, provide your script exception traceback, when its failed. Or, you can add next rows to your code, to get more info about your program:
import logging logger = logging.getLogger('TeleBot').setLevel(logging.INFO)cap-102 commentedon Dec 9, 2023
This is full log. My bot don't fail or whenever, it just don't have any effect if I push the buttons
Badiboy commentedon Dec 10, 2023
import telebot, telebot.types as typesNow works fine.