I’m writing a script to sent proxies file from a directory to telegram channel. With the help of some good folks I was able to complete it almost Issues occurred what I’m trying is to send those 3 proxy files with a caption to the first proxy file Answer with the help of some good folks I make it …
Tag: python-telegram-bot
Automatically edit last Telegram bot message after expiration period
I’m trying to figure out how I can set an “expiration timer” on a message sent by a Telegram bot, containing a few buttons. Long story short, there’s a function which selects a random picture from a folder, then sends it to a group, and in a separate message it sends an InlineKeyboard …
Python-telegram-bot bypass flood and 429 error using Scrapy
I follow the price drops on the target site. If there is a price decrease in accordance with the rules I have set, it is recorded in the notificate table. From there, a telegram notification is sent through the code I created in the pipelines.py file. Sometimes the target site discounts too many products and …
How to pass a variable to a different function (a different stage in ConversationHandler?)
So I have a bot which moves from stage to stage using the stage names as a product of return of each function. e.g. So in the end() function I need to pass the variables from functions getfile() and get_info() in the some_function. But I have no clue how to do it, because returning multiple values doesn’…
Receive the typed value from the user after the command in python telegram bot
For example, we have a command called a chart /chart Now I want to get the value that the user enters after this command example: /chart 123456 now How should i get that 123456? This is the code used to create the command: I read the python telegram bot documents but did not find what I was looking for Answer
Unable to get data collector to display values (Keeps displaying None value)
Hello I am currently using python telegram bot to create my bot, currently I am unable to use my data collector (which also functions to calculate my calories) to display the value I want) The issue is that it keeps returning a None value, does anybody know the solution why ? I understand my means of doing th…
Is it possibile to have both InlineKeyboard and ReplyKeyboard on telegram?
Is it possible to have both keyboards (telegram.InlineKeyboard and telegram.ReplyKeyboard) under a single message? Thanks Answer no, that’s not possible. the reply_markup parameter of send_message & friends only accepts one keyboard. The closest you can get is to send two messages with one keyboard …
CallbackQueryHandler reply message instead of edit message – Python Telegram Bot
I’m developing a bot using python telegram bot I would like to be able to send a reply message from a InlineKeyboardButton instead of having to edit the current message. Answer Only one of the optional attributes of Update will be present at a time. If the update from pressing an inline button, then upd…
Send document to telegram bot using python-telegram-bot Package
I am try to build a telegram bot using python with python-telegram-bot Package and its working with text commands now i try to send a document to user my code like but it show a error like return update.message.download(open(‘cv.pdf’, ‘rb’)) AttributeError: ‘Message’ object…
Creating a Welcome Bot Using python-telegram-bot
I have been moderating a telegram group for some time and I have had no issues using the python-telegram-bot package. I actually love it. However, I can’t seem to get a functioning “Welcome Message” for when new users join. Right now, I have tried structuring the function like I do with my c…