Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Telegram bot and the method getUpdates

Tags:

telegram-bot

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 link:

https://api.telegram.org/bot<token>/getUpdates

now I can't see any message, but if I start a new bot this link works fine like the first day when I created the other bot.

There is a particular interval of time after which this link stops working? There is a way to re-enable it?

Thanks in advance

like image 781
davboc Avatar asked Dec 04 '15 11:12

davboc


People also ask

What is Telegram bot and how it works?

A Telegram Bot is a programme that behaves like a normal chat partner with additional functions. It performs predefined tasks independently and without the user's involvement. The term bot is derived from the term for robot.

How can I get telegram API ID and hash?

Obtaining api_id Sign up for Telegram using any application. Log in to your Telegram core: https://my.telegram.org. Go to "API development tools" and fill out the form. You will get basic addresses as well as the api_id and api_hash parameters required for user authorization.

Can a Telegram bot send message to user?

In order to send a message to "@Username", you will need them to start your bot, and then store the username with the user_id. Then, you can input the username to find the correct user_id each time you want to send them a message.


1 Answers

Use @BOtFather And /revoke command to Get New Token for your bot.

like image 170
Mehdi jafari Avatar answered Sep 28 '22 04:09

Mehdi jafari