python-telegram-bot Questions

2

Solved

I develop telegram bot using python-telegram-bot. Despite the usage of MessageQueue (just as mentioned in the docs) I keep getting telegram.error.RetryAfter: Flood control exceeded. Retry in N seco...
Lollygag asked 19/7, 2018 at 12:48

2

I am developing a simple Telegram chat bot using python-telegram-bot library. My bot is currently using the ConversationHandler to keep track of the state of the conversation. I want to make the c...
Nondisjunction asked 21/3, 2020 at 1:19

3

Solved

def bot_start(): application = ApplicationBuilder().token("api_key").build() async def stop(update, context): await context.bot.send_message(chat_id=update.message.chat_id, text='Ter...
Ombudsman asked 18/11, 2022 at 4:25

2

Solved

I want to create a Telegram bot that checks for a new post on a website (currently every 15s for testing purposes). If so, it should send a message with content from the post into the Telegram chan...

10

Solved

I installed telegram packages. But when I try to run the simple example, echobot.py, I got an error: Traceback (most recent call last): File "echobot.py", line 8, in <module> import telegra...
Iodic asked 28/7, 2017 at 21:30

3

Solved

For my telegram bot (python-telegram-bot) i generated a PIL.Image.Image and i want to send it directly to a user. What works is to send an image as bufferedReader from a file, but i don't want to ...

5

Solved

Sending the output of Prettytable to Telegram This question is a followup to an earlier question. The code which i have is this: import telegram from prettytable import PrettyTable def send_msg(te...
Ensepulcher asked 13/8, 2021 at 7:31

5

Solved

I am quite new in building bots so I created a very simple Telegram bot and it works great but can't figure out how to make the bot send messages every n minutes or n hours when /start_auto command...

2

Solved

We are using python API for telegram bots and need to be able to identify the user. Is the chat_id unique for each user connecting the bot? Can we trust the chat_id to be consistent? e.g same ch...

4

Solved

How can I make a bot to pretend that it is typing a message? The following text appears in the chat when the bot pretend to type: I use the python aiogram framework but a suggestion for the na...
Haler asked 30/4, 2020 at 9:42

2

Solved

Recently Telegram added support for Topics in Groups in Bot API version 6.3 and this support added into python-telegram-bot version 13.15 (please find changelog https://docs.python-telegram-bot.org...
Adorl asked 12/12, 2022 at 15:45

3

Solved

I need to read the messages of some public channels in the application, as, for example, happens https://tlgrm.ru/channels/tech. As I understood, the bot for this business will not work. You need t...
Freethinker asked 2/10, 2017 at 12:55

2

I have working url to mp3, and I am trying to send audio to Telegram by this url. It works from time to time, but most of time it gives error "A request to the Telegram API was unsuccessful. The ...

3

Solved

I am trying to create a telegram bot. The code i am trying to execute is : from telegram import ParseMode But it is throwing up this error: ImportError: cannot import name 'ParseMode' from 'telegr...

4

Solved

I am making a database in which my algorithm only accepts queries from users with telegram id length of 9. user_id: 123456789; length = user_id.length; display(length); OUTPUT: 9 Are there tele...

3

I have installed python-telegram-bot like this: pip install python-telegram-bot And when I'm trying to do this: from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, CallbackC...
Solberg asked 12/1, 2023 at 10:47

2

I've a button , it's supposed to return the ask_wikipedia function , so I used CallbackQueryHandler but when i want to call ask_wikipedia function i recive an attribute error ! Why? How can i fix i...
Parallelize asked 10/3, 2021 at 12:17

3

It occurred when I perform this : updater = Updater('xyaz:testtsttttt-HI', use_context=True) Many Thanks!
Holster asked 7/7, 2022 at 14:18

4

Solved

I have able to make a bot very easily by reading the docs but Jobqueue is not working as per it is written. The run_daily method uses a datetime.time object to send the message at a particular time...

4

Solved

I'm Creating A Telegram Bot Using Python-Telegram-Bot I Know That update.message.chat_id Returns The User's Chat ID, But I Need To Know How To Get User's Username Or First Name And/Or Last Name. ...
Nubianubian asked 6/12, 2016 at 2:16

4

Solved

I work with python-telegram-bot and try to build a system of nested menus as BotFather bot does. For instance, you have a general bot menu where you can choose "Edit Bot" and get the new corres...
Ellie asked 1/7, 2018 at 17:12

3

Solved

My bot sends a pick with 2 inline callback buttons: like / dislike. After a user clicks on like or dislike button, I want this inline keyboard to disappear. This is how I make a dislike button ...
Sphenic asked 23/2, 2018 at 13:56

2

Solved

I'm trying to create a simple Telegram Bot using the python-telegram-bot library, but i can't align a dictionary with the default "{0:<20} {1}".format(key, value) idea. Let me give u a...
Elaelaborate asked 7/5, 2019 at 20:59

5

I've coded a Telegram bot (python-telegram-bot) and I would like to know if there's a way to open an app from the bot. To be more accurate, the bot searches torrent links and the original idea was...
Dichroic asked 14/11, 2018 at 11:4

3

Solved

Is there any way that can handle deleted message by user in one-to-one chat or groups that bot is member of it ? there is method for edited message update but not for deleted message .
Tenorrhaphy asked 28/1, 2018 at 7:49

© 2022 - 2024 — McMap. All rights reserved.