Category "telegram-bot"

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 .

How to know if user has seen a message sent by my bot in Telegram?

I'm developing a Telegram bot, and I want to know whether a user, that has started a private chat with my bot, has seen a certain message sent by bot, and to kn

send a poll in telethon telegram bot

How can i send a poll? I am trying the following code but it returns no error and the poll is not sent: from typing import Optional from telethon.sync import T

Sending Messages to Discussion on Telegram Channel

I currently have a telegram channel linked to a telegram group. As a normal user, in the telegram channel, there is an option for me to "Leave a Comment", which

Telegram bot and the method getUpdates

I have a question about Telegram bot, I created a bot some weeks ago, it works fine but there is a strange behavior with the method getUpdates; indeed if I use

The asyncio.sleep is "waking up" too early

I am writing a telegram bot, which has to work for numerous users simultaneously. The bot has to send messages at random time during a certain time frame. When

PHP: Telegram Bot: Insert line break to text message

"\n" and "\r\n", tested in text message sent by telegram bot, to create line break. Instead of showing line break, underline _ will appear after using them.

How to get message info by ID [Telegram API]

I'm writing bot for telegram to gather some stats from group chat. I need to get info about every message (from the beginning of chat). I know how can i do it,

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'

Telegram bot doesn't answer

I'm using the package of eleirbag89 http://eleirbag89.github.io/TelegramBotPHP to create my bot on telegram. I'm having some issues on it, it doesn't answer me

How can I send a Carousel like message in Telegram bot?

I've been searching for something like this https://cdn-images-1.medium.com/max/800/1*pLXaOT2WwxRptVxOvuvX8w.png in Telegram to no avail. Anyone out there can p

How Can I add URL for Inlinekeyboard in Telegram Bot

I want to create a button that when I click on it will send the file to me in the telegram. from config import TOKEN from telegram import MessageEntity, ReplyK

How to remove a button from the telebot keyboard?

I need to remove the button from ReplyKeyboardMarkup. I search in Google very well. The telebot library(PyTelegramBotAPI) is used. Thank you in advance :)

Telegram, getting file_id for existing sticker

I'm writing a Telegram bot and I want it to send a sticker. It is said here, that to send a sticker that already exists on Telegram servers we can simply pass

How to obtain the chat_id of a private Telegram channel

I use curl to update my public channels. This kind of syntax: curl -X POST "https://api.telegram.org/bot144377327:AAGqdElkZ-77zsPRoAXXXXXXXXXX/sendMessage" -d "

Telegram Bot: How to get callback_data value?

I have a simple bot in Telegram. My "/select" command displays two buttons and each button has its own value. So, if user clicks on a button I can get the text,

Need download voice message from Telegram on Python

I started developing a pet project related to telegram bot. One of the points was the question, how to download a voice message from the bot? Task: Need to dow

pyTelegramBotAPI always returning the same function

I'm building a Telegram bot using pyTelegramBotAPI and I'm facing a problem that it's always returning the second function even when I send a text that doesn't

Telegram login widget return "bot domain invalid" in my mvc app

I use telegram login widget in MVC App , and follow steps as in post telegram-web-login-widget-setdomain-does-not-work Steps As in Post Here is how the di