how to handle audio-messages in python-telegram-bot
I want bot to check if user answer have audio and then decide what to do but bot only handle text message and just ignores audio.
How to Handle and Save Multiple Media Files (Images/Videos) from Telegram Bot with Python
I’m working on a Telegram bot using Python and the python-telegram-bot library. The bot processes and saves media files (images and videos) along with text content from messages in a group chat. However, I am facing issues with how the bot handles multiple media files within a single message.
Telegram bot – conversationHandler is not able to keep state Selecting conversation (###, ###) with state None
I am using python-telegram-bot
to create a telegram bot, here is my code
How to change the url of button after it is sent in python telegram bot?
I have a bot which will send approximately 30 different messages with different InlineKeyboardButton
s; each one of these buttons will point to a different URL. As each of the URLs is generated by a relatively time consuming process (that I an unable to speed up), and generally only one of the 30 buttons will be clicked, I would like to call the function to generate the URL only if the button is actually clicked AND have the URL open on the client device.
i’m creating a telegram uploader bot but everytime it hits an error , I have not much knowledge of coding so help me
TypeError: Dispatcher._init_() takes 1 positional argument but 2 were given
Module error = from telegram.ext import Updater, CommandHandler, MessageHandler, filters, CallbackContext
I am creating a Telegram Python-based bot, but I encountered an error:
Python – Telegram Bot : Module error = from telegram.ext import Updater, CommandHandler, MessageHandler, filters, CallbackContext
I am creating a Telegram Python-based bot, but I encountered an error ????
telegram python API to send multiple pictures in one post
async def send_photos(bot_token, chat_id, photo_paths, caption, t): bot = Bot(token=bot_token) try: async with bot: media_list = [InputMediaPhoto(open(path, ‘rb’)) for path in photo_paths] await bot.send_media_group(chat_id=chat_id, media=media_list, caption=caption) except: print(f’Failed to send_photos – {t}’) async def post_to_telegram(t): try: bot_token = ‘token’ chat_id = ‘chat_id’ image_paths = [‘tmp/img1′,’tmp/img2’] caption = ‘test sending multiple images in one post’ await […]
Sometimes bot can’t mention user by Number ID
I am programming an Telegram bot by using of python-telegram-bot 21.1.1 and I need bot mention everyone that starts bot in my PV as Admin and lets me know.
How does one Allow CallbackQueryHandler only for command sender?
If a user sends some /commands
to the bot, and the bot responds to it with some messages using libraryInlineKeyboardMarkup
. But every user in the chat can interact with that InlineKeyboardMarkup