Category "telegram"

Telegram bot: List of telegram bot commands

I can not find how to get a list of commands from a telegram bot. Neither via api nor via external binding. Is it even possible? For example. I created a list o

Trying to handle an error but cannot do it! Telegram

I have made a telegram bot using pyrogram to upload a large video and the the progress bar is shown, however the progress bar is repeatedly edited message with

Do bots have their own Chat IDs?

Do bots have chat_id like user accounts? Where can I find it? I want to use it to send messages to my bot using pyrogram.

How to validate data received via the Telegram's Web App

I'm trying to validate WebApp data but the result is not what I wanted. Telegram documentation: data_check_string = ... secret_key = HMAC_SHA256(<bot_token&g

Telegram bot long polling stops at 50s

I wrote a simple C++ program where I use libcurl to send a HTTP POST request at getUpdates URL with the parameter timeout=3600 but it returns after 50 seconds i

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 Web Bots data validation in JavaScript

I've tried to do user verification script for telegram web app for bots. I have no idea how to fix it. import sha256 from 'js-sha256' const telegram = window.T

Telegram bot and google apps script not working

Good evening everyone, forgive the trouble, I tried to do a "search" on the site but I could not find the answer to my problem so I thought of opening a new dis

How can I send an image with a caption using Telethon in python?

I'm aware I can use this client.send_file(receiver, '/path/to/photo.jpg') to send an image, but how can I attach a caption to the image?

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

How to make the bot send a random photo to aiogram?

I need to force the telegram bot on aiogram to send a random photo to the chat, how can I do this. Thanks in advance for your reply

unable to create web_app button aiogram

Good afternoon, an update has recently been released in telegram and added web_app buttons. leading to the "site" in the telegram itself, the documentation says

How can I send image with text using telegram bot API?

I'm trying to send a message to telegram using Telegram API bot. I want to make a GET request, that will send both text and image to my telegram channel. Now fe

Telegram Crypto Bot

I have a problem. I'm getting Crypto information from CoinGeckoAPI. Information is not sorted. So I sorted. When I'm running this file with print. It works. But

How can I hide bot from searching in Telegram?

How can I make my bot hidden for search and accessible only via direct link?

Avoid FloodWait in python

I am new to Pyrogram and I try to make subsctiption bot I want to send messages as soon as any satisfy my filters, but every time I send more than 3 messages in

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

aiogram Why code has expired for different users with the same api_i and api_hash?

I working on python telegram bot that allow login telegram client using registered user and then do some actions using user credentials ... ... But I got the fo

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

socket.timeout on telegram bot.polling()

When I leave my program running for a few hours and then send a message to the bot it doesn't reply and after a while it generates the following error. Tracebac