Category "telegram"

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

How to use register_next_step_handler on AsyncTeleBot

Heyyy, I'm just using pyTelegramBotAPI and used the bot.register_next_step_handler to get a user input as a var and send it to the next function like: getLink =

telegram web app for bots object is not contain user data

I have created a web app for my bot and also integrated the telegram "web app Script" https://telegram.org/js/telegram-web-app.js The code of my web app is show

Telegram bot api - multiple instances of same bot

I would like to make a telegram bot that sends error messages from a software. This software would run on 20 different pcs. Each log would be like this: "pc nam

Is it possible to use telegram bot inline button to get user live location?

I want to ask the user of the bot to share their live location using a message with two inline buttons (https://core.telegram.org/bots/api#inlinekeyboardbutton)

Joining voice call without joining group using telethon, pytgcalls

Is it possible to join a voice call in a group, without joining the group? In Telegram client you can do it, but I couldn't figure out how to do it using teleth

MessageMediaUnsupported() instead of MessageMediaPoll() type when using Telethon

When I receive a message, my client waits until he receives a message that has media type = MessageMediaPoll(), it worked, but the bot has been updated and now

MessageMediaUnsupported() instead of MessageMediaPoll() type when using Telethon

When I receive a message, my client waits until he receives a message that has media type = MessageMediaPoll(), it worked, but the bot has been updated and now

See what link was used when new user joins to telegram channel

I am trying to make a telegram bot for accounting invite links. It is supposed to count how many times a certain link was used. I tried to get an invite link fr

How to fix SocketException while connecting to Telegram Bot API in Java App

I'm working on my Telegram bot. I know, in my countries Telegram is locked, so I decide to connect to Telegram Bot API through proxy. When I try to run this cod

Is there a way to get the number of people that joined through a specific invite link with Telegram API?

In the Telegram app, you can see what members joined from which specific invite link. I would like to access that information through Telegram API. However, I c

my.telegram.org sends an ERROR when I want to create an API id/hash in API development tools section

I'm trying to get my API id/hash to create some bots for telegram , but in the API developmen tools section , when I enter my bot informations( name , shortname

Where do I insert the code for the telegram login widget?

I want to use the telegram login widget shown in this page https://core.telegram.org/widgets/login and the instructions ask to embed this code onto my website:

Don't get a response from from Telegram Web App for bots

I create inline keyboard with web_app field, and it open Web app. But how get data from it? window.Telegram.WebApp.sendData('data') - this method in web app doe

Simplest way to retrieve all messages of a Telegram channel in Java?

I hope this question is not too general. I'm looking for a way to retrieve all the messages (including media) that have been posted on a Telegram channel, and a

telethon forward messages without a specific word

I am using a telegram bot that forwards messages from a certain channel to any other channel I am on, but I want it to forward these messages without a word, fo

How do you remove reply keyboard without sending a message in Telegram?

In Telegram bot you can send a message with the reply keyboard using the sendMessage method. The keyboard is getting displayed instead of normal qwerty one. W