Closed cap-102 closed 11 months ago
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.
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