如何向telegram API(chatJoinRequest)发送请求?

问题描述 投票:0回答:1

我正在向 telegram API 发送 GET 请求

https://api.telegram.org/botYYYYY/chatJoinRequest?chat_id=-1001959211654&user_id=254981096

并收到 404 错误

{ "ok": false, "error_code": 404, "description": "Not Found" }
医生在这里 怎么了? Bot id 是正确的,因为我在其他请求中使用了它。

我想创建电报聊天加入请求

node.js telegram telegram-bot
1个回答
0
投票

根据 文档 有 4 个必填字段需要发送:

chat
from
user_chat_id
date

您只发送了其中两个,并且两个均无效(

chat_id
应为
chat
user_id
应为
user_chat_id
)。

请阅读文档了解更多信息。

© www.soinside.com 2019 - 2024. All rights reserved.