207 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
112
views
Python telebot inline buttons do not response for some reason. Button handlers not responsing
Python 3.13.2,
pyTelegramBotAPI-4.27.0,
Windows 10
I have a problem with Python telebot inline buttons. It worked fine for a long time, without any problems. At some point it stopped to work. I did ...
-1
votes
1
answer
116
views
How to make Telebot respond "I don't understand" when user sends unknown text? [duplicate]
I’m making a Telegram bot using Python and the telebot (pyTelegramBotAPI) library.
I created a basic telegram bot for practice, and I want bot to say "Sorry, I don’t understand" when a user sends a ...
0
votes
1
answer
126
views
Is there a single way to store different media types in Telegram bot?
I'm doing different Telegram bots, that can send media to their users.
For video files I used this code to store video uploaded by admin:
caption = event.message.text or ""
file_id = event....
0
votes
1
answer
44
views
Function after decoration changes its result ('return' value)
So here's the decorator and the function I use:
#telebot module imported, and another function gets users input and calls the check function with:
my_bot.register_next_step_handler(message, check)#...
2
votes
1
answer
187
views
How to prevent Python Telebot from duplicating messages?
I've got a problem with Python Telebot, here is my code:
import telebot
token = 'token'
bot = telebot.TeleBot(token)
@bot.message_handler(func=lambda message: True)
def start(message):
bot....
0
votes
0
answers
203
views
Why is my Telegram Bot callback query handler not working?
I am developing a Telegram bot using the telebot and I have encountered an issue where the callback query handler is not triggered when I click on an inline button.
from telebot import TeleBot, types
...
0
votes
2
answers
403
views
how to count the number of reactions of a post in a channel. pyTelegramBotAPI?
I'm trying to create a chatbot that will read the number of reactions and send them to me. In the pyTelegramBotAPI documentation, I found the message_reaction_count_handler and ...
0
votes
1
answer
100
views
[PyTelegramBotAPI]Error Sending Media Group with Video and Thumbnail: BufferedReader is Not JSON Serializable
I'm encountering an issue using PyTelegramBotApi that's driving me crazy. I want to send a media group message from my bot to a channel. The media group contains a single video with a custom thumbnail....
2
votes
1
answer
78
views
Telebot. @bot.callback_query_handler isn't working
Can somebody tell me what am I doing wrong? The bot sends me an inline keyboard, but after clicking the button, I do not receive any callbacks (even the logger doesn't send anything).
Also, if I pass ...
0
votes
2
answers
293
views
How to forward messages with media using a Telegram bot?
Due to a lack of knowledge, I encountered an issue on the TelebotCreator website. I created a simple bot, but I can’t forward messages if they contain one or more photos or videos. Messages without ...
0
votes
0
answers
102
views
Is there any way to download files from TG-channel with using telebot python module?
I tried to make a bot that downloads files from Telegram channel, but except of good code I don't get files that may be downloaded in my directory. I tried this code:
@bot.message_handler(...
0
votes
0
answers
58
views
How can a bot forward messages to a Telegram group
I need to make a bot that should forward messages sent to him in the group. How can this be done, I have searched a lot of information, nothing helps
I tried to forward the group ID, maybe I did ...
0
votes
1
answer
36
views
I want to make sure that photos and videos with captions sent to the bot are sent to a certain chat
I want to make it so that the user can upload a photo or video with an inscription, and this bot forwarded this message to a special chat. I tried to do it, but I only did the transfer of pictures ...
0
votes
1
answer
39
views
How do I get the entire list from the database in the bot?
I want to output a text telegram bot. But in my code, all the data (in my case, words, Dictionary.translate, description, Terms.translate) is output only in the console, and in the telegram it outputs ...
-1
votes
2
answers
35
views
How I can create Suggested button in library telebot
I want create like this button. HOW?
@bot.message_handler(commands=["start", "help"])
I wrote the suggested words but they did not appear to the user like the attached image. What ...