telepot is a python library to access the Telegram Bot API and work with it via python script or console
Questions tagged [telepot]
109 questions
0
votes
0 answers
Create dynamik keyboard telegram bot
how can create a dynamic keyboard?
i created the buttons dynamically, but now i don't understand how to create the actual keyboard
i want to generate this code dynamically
keyboard_EXAMPLE = InlineKeyboardMarkup(inline_keyboard=[
…

Luciano Blancato
- 1
- 1
0
votes
1 answer
How to reply a massage in Telepot?
I am making a telegram bot with telepot , but I don't know how to do it. I tried many solutions, but I didn't get an answer and the bot only sent simple messages without reply!
My source is supposed to run on the pythoneverywhere site, so I have the…

Yousef Hoseini
- 3
- 1
0
votes
0 answers
Python Telegram Bot Telepot - Connection aborted.', ConnectionResetError
Hello I'm getting this error when using telepot:
Connection aborted.' ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forced to be aborted by the remote host', None, 10054, None)).
This is the code I am using:
import…

Python Dreamer
- 1
- 1
0
votes
2 answers
How to send bold text on telegram bot
I everyone,
I am using telepot to send text and image on my telegram bot. Below an example of my code:
bot.sendPhoto('@XXXXXXXXXX', getImage(soup),
caption = getTitle(soup) + getDealPrice(soup) ,…

moskino11
- 21
- 3
0
votes
0 answers
telegrambot gives me 'No suggested keys error'
yesterday I tried my bot with a friend, everything was ok until today, when he deleted the chat, now I'm receiving this error:
Looking online I discovered that this should be an update, is there any way in which I could handle this kind of things?…

bl4nk
- 131
- 3
0
votes
1 answer
How to update a message text on telegram api ? (Python)
I'm developing a telegram bot using telepot, I'm trying to ask the user a question for example: What's your name?
Then wait for the user to type the name, and save it in a variable, but this is not a library method, I think.
So I decided to create…

Pablo Vinicius
- 1
- 2
0
votes
0 answers
Delegate task from Multiprocess to Sub Process in Python
Hi currently I am using python telepot to:
Listen to incoming message
Based on the message it will do a long operation to generate some image.
Problem: The message is being process 1 by 1.
So if 2 users send in the message at the same time, it…

Cytan
- 53
- 6
0
votes
1 answer
Telegram bot doorbell - Raspberry Pi
I'm new to python and raspberry, I would like to make a smart doorbell controlled by a bot on telegram. The doorbell in question has a pir sensor that sends a video over telegram every time its triggered. I would like to have the messages I send to…

MrAzura
- 1
0
votes
0 answers
How to make a telegram bot so that it notifies a registered user once an external AI algorithm detects a certain action?
I am trying to make a telegram bot to establish a user interface for an action detection algorithm.
What I am trying to do is that: Once the algorithm detects a predefined action, it sends related information to my python bot-script and runs it. The…
0
votes
1 answer
My telepot bor results kicked on my own chat with him
I clicked on delete chat on the chat with my bot, thinking that this will only delete the messages, but after that when I try to start my bot this error shows off:
what can I do?

bl4nk
- 131
- 3
0
votes
0 answers
Bot waits for a message after a command, Telepot
I'm just working on my bot with Telepot.
The bot works well but I have a question for you.
Is there any way to send a message to the bot and have an answer? Let me show
this is the behaviour I want, but i know it's not correct
if command == "/gen":
…

Giuseppe
- 3
- 8
0
votes
2 answers
Scrape Product Image with BeautifulSoup (Error)
I need your help. I'm working on a telegram bot which sends me all the sales from amazon.
It works well but this function doesn't work properly. I have always the same error that, however, blocks the script
imgs_str =…

Giuseppe
- 3
- 8
0
votes
1 answer
How to resolve this error in telepot library?
hope it's ok i was compiling a little code for a smart doorbell project when all of a sudden this error appears to me is there a solution?
I use python 3.7 and the latest version of telepot library in raspberry pi3B
sorry my english is because i'm…

ReiZeMuitoGordo
- 1
- 1
0
votes
1 answer
Get the text of a message known the message identifier (chat_id, message_id) with telepot
I want to find a message and get his text.
I know that if i have the message object I only have to do:
msg["text"]
But I don't have it, I have a message identifier like this:
(chat_id, message_id)
Obtained…

Leonardo Scotti
- 1,069
- 8
- 21
0
votes
1 answer
Python Telegram Bot: InlineKeyboardButton and waiting for user input
I'm trying to make a telegram bot that will interface with an IoT system i'm developing. Actually i'm stuck in programming the python telegram bot; her's my problem: inside the bot's chat the user is able recall the InlineKeyboardButtons to turn…

PeterGentleman
- 1
- 1