|
<< Click to Display Table of Contents >> Navigation: Telegram > 2024 > 06 > 11 > Telegram_2024-06-11T07 |
2024-06-11T07:12:54
type: link https://core.telegram.org/bots/api#getting-updates
2024-06-11T07:14:36
type: link https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/getUpdates
where 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11 is your bot token
2024-06-11T07:15:00
and he will send you a json with all the messages that you got from the N channels or from the single users that send anything to the bot
2024-06-11T07:15:37
so logic should be
to call getupdates
wait for N second
call it again
2024-06-11T07:15:55
the alternative is to set a webhook in this case telegram will call your website for each message he gets