py-telegram-bot-api

Python Telegram bot doesn't start running at all

Python Telegram bot doesn't start running at all Question: I am a Python beginner trying to create a Telegram scheduler bot using the python-telegram-bot library and some code snippets I found online. However, when I try to run the code, the bot doesn’t seem to start running at all. I have double-checked that I am …

Total answers: 1

How to Reply Message in Unknown ChatBot Telegram with Python?

How to Reply Message in Unknown ChatBot Telegram with Python? Question: I have a ChatBot in Telegram that forwards message from others to me and I can reply their messages by replying messages in bot. When I reply a message, the bot checks that message user id, and send my message to that id. But …

Total answers: 1

How to send scheduled message using telebot python

How to send scheduled message using telebot python Question: In telegram client you can send a scheduled message and select a time at which it will be sent. Is there a way to do that using python Telebot library and not keep the script running and checking time manually? Asked By: kepper104 || Source Answers: …

Total answers: 1

Text + image not working with telegram bot

Text + image not working with telegram bot Question: Having troubles with sending image with text. Instead of actual image, I’m just getting the path to it. I wonder if someone knows what is the problem in my code. Instead of the path I want an actual image import telebot from telebot import types bot …

Total answers: 2

poll answer handler with pytelegrambotapi

poll answer handler with pytelegrambotapi Question: I’ve sent a poll using this: @bot.message_handler(commands=[‘start’]) def start(message): bot.send_poll(message.chat.id,’choose one’,[‘a’,’b’,’c’]) but how could I get the answer back? the documentation say’s: Handle poll answers @bot.poll_answer_handler() # <- passes a PollAnswer type object to your function. but I didn’t know how to use it. Asked By: M.Mevlevi || Source …

Total answers: 1

How to make that when you click on the text it was copied pytelegrambotapi

How to make that when you click on the text it was copied pytelegrambotapi Question: I am writing a telegram to the bot. I ran into such a problem. I need the bot to send a message (text) when clicked on which it was copied (as a token from @BotFather) Asked By: DanDyFun || Source …

Total answers: 3