![]() | 1 4BVL25L90W260T9U 2023-03-22 11:16:55 +08:00 ![]() 不要滥用爬虫这个词,“拉”(pull) 不更好么? |
![]() | 3 xycool 2023-03-22 11:30:35 +08:00 创建一个 bot ,把 bot 拉到群里面去就可以了。然后设置 bot 的 webhook 地址,就能收到群消息然后处理了,具体的可以看 bot 开发文档 |
![]() | 5 ongongethan 2023-03-22 13:13:21 +08:00 使用 bot 的话, 有两种方法可以接受的消息: 1. pull 方式,使用 getUpdates(),文档 https://core.telegram.org/bots/api#getupdates 2. push 方式,使用 webhook ,文档 https://core.telegram.org/bots/api#setwebhook |