mmaurice / tgbot-core
Telegram机器人框架核心
0.0.1
2021-11-15 20:18 UTC
Requires
- php: >=7.4
- php-di/php-di: dev-master
- rakibtg/sleekdb: dev-master
- telegram-bot/api: 2.3.23
This package is auto-updated.
Last update: 2024-09-16 02:50:52 UTC
README
- 可以通过前往TG机器人
并运行命令: /newbot 来注册机器人
- 注册机器人后,将生成 [token]
- 需要在带有SSL证书的web服务器上部署机器人应用程序
- 通过链接注册机器人应用程序的webhook,链接为: https://api.telegram.org/bot[token]/setWebhook?url=[handler-url] 其中,[token] - 分配给机器人的token [handler-url] - webhook应用程序的路径(格式为: https://site.com/path/to/handler.php)
- 完成