Category "python-telegram-bot"

Return does not return information

When wanting to return a value with the return and wanting to use it later in a variable, nothing is returned to me. #Actualizacion de informacion def messageHa

It doesn't pick up the variable correctly in subprocess.call (python)

I am creating a telegram bot to send the information that I request to the app. When I run the code below it works fine except for the last part, when it does t

Python Telegram Bot: How to measure interaction time/response time of user?

how can I measure the time the user uses to interact with the bot? E.g. The bot sends a message. We want to measure the time from the reception of the message t

How do I avoid using global variables when writing a Telegram bot

I'm writing a Telegram bot on Python using the python-telegram-bot library. The bot's function is to look up POIs around a given location. I have a Conversation

Network errors with Python Telegram Bot

I use a Python Telegram Bot script in Visual Studio Code on my PC, and sometimes i have this error: telegram.ext.dispatcher - ERROR - No error handlers are regi

"telegram.error.BadRequest: Wrong file identifier/http url specified" when trying to send certain URLs

I have this function that basically sends messages to a chat group in telegram with data from new documentaries. chat_id = *chat_number* images = 'https://m.med

Error : No module named 'telegram' - How can I resolve this error?

I get this error mainly when using Pyinstaller.

python-telegram-bot stops working after 5 min

I have created a telegram bot that sends screenshots of the browser webpage. I have used python-selenium package in order to connect browser with telegram-bot b

Tell me why my telegram bot stops working after some time and gives an error:

The bot works for 10-30 minutes, then with any command in the telegram bot, the following error appears in the code terminal: Traceback (most recent call last):

Running codes from a list once python

Here I have a code, but I want all of this code to run at same time without each waiting for other to finish before the other run. from telegram import * from t

How to create unit test for a Python Telegram Bot

I've built this Telegram Bot in Python, with python-telegram-bot. It's not so complex, but I want to do some regression tests to check if everything works fine

How can I restrict a Telegram bot's use to some users only?

I'm programming a Telegram bot in python with the python-telegram-bot library for python3.x It's a bot for private use only (me and some relatives), so I would

Best practice in sending message in python telegram bot from a 3d party listener

I have a custom code that does its routine and I want to send a message to myself in Telegram if something goes wrong. In my case I use python-telegram-bot libr

Telegram bot sending error "Something went wrong, please try again" after message

Output aaaaaa Something went wrong, please try again. Code: import telegram TOKEN = "xxxxxxxxxxxxxY" bot = telegram.Bot(TOKEN) print("Bot

No module named 'telegram' error after installing python-telegram-bot

I have installed the python-telegram-bot from cmd using this: pip install python-telegram-bot and also I tried this pip install telegram but after I run a code

Python telegram bot - reply when user says specific words

Context: I am starting to learn how to code a telegram bot in python. I have successfully made a fun bot for my group with friends to use. However, i only want

Weird thing with telegram bot api, can't change title of audio

Some weird thing with telegram api. I am trying to send audio from telegram bot and by the way to change performer and title, but I can't. First of all I thoght

Python conflict with keyword "from" in telegram bot

I would like to print user information in Python script using python-telegram-bot referring to this page But when I type print update.message.from keyword .

I'm having trouble running the python-telegram-bot Library sample code

I'm trying to use the example codes from the repository's beginners guide and the ready-made examples: wiki& examples I can't run them because of some class

Installed python-telegram-bot but still showing "No module named 'telegram'"

Hi I already installed Python-telegram-bot using pip install python-telegram-bot. However, when i run my python file in VS, it shows "No module named 'telegram'