我创建电报机器人。当用户单击启动时,如何创建自动按摩
这样的“感谢您与我们的机器人的联系”。
- 是否可以创建一种算法,用户可以通过我的网站连接到机器人,而无需访问电报,而无需按 /启动 /启动。
结果,我需要在电报中向用户发送通知,
此刻,我有算法
- 将用户转到我的电报bot,然后按下启动
- - 复出到我的网站,按下按钮触发“连接到bot”和我转到电报API(getupdates)和电报中的用户ID,我将发送消息。
我从这个URL获得的对象
https://api.telegram.org/bot/bot/bot getUpdates?offset = -1
在此处输入图像说明
I create telegram bot. How to create auto massage when user click start
like this "THanks for connection to our bot".
- Is it possible to create an algorithm by which the user will be able to connect to the Bot from my site without going to the telegram and without pressing /START.
As a result, I need to send notifications to the user in telegram
at this moment i have algorithm
- the user go to my telegram BOT and presses the start
- after - comeback to my site, presse the button-trigger "connect to the bot" and i go to url telegram API (getUpdates) and the userID in the telegram to which I will send a message.
object i get from this url
https://api.telegram.org/bot/getUpdates?offset=-1
enter image description here
发布评论
评论(1)
希望这对您有帮助,
Hope this helps you