我们应该向microsoft botFramework发送什么Json响应来将我的响应路由到电报频道

时间:2017-11-16 07:49:18

标签: botframework telegram telegram-bot

我发送以下回复来自botFramework request https://telegram.botframework.com/v3/conversations/-263387177/activities/

提供的服务网址

我的意图是使用sendMessage电报方法我可以通过microsoft botframework将文本路由到电报频道

我发送的http帖子如下

  {
    "type": "message",
    "locale": "en-Us",
    "chat_id":-263387177,
    "channelID":"telegram", 
     "from": {
        "id": "GTSFIBot",
        "name": "sapeops"
    },

   "text":"hi , Greetings!",
   "replyToId": "1505813737353",
    "recipient": {
        "id": "DirectLineClient"
    },
    "conversation": {
        "isGroup": true,
        "id": "-263387177",
        "name": "sapeops group"
    },
    "channelData": {
        "method": "sendMessage",
        "parameters": {
             "chat_id": -263387177,
            "parse_mode": "HTML",
            "text": "<B>Greetings! How are you doing?</B>"

        },
            "chat": {
                "id": -263387177,
                "title": "sapeops group",
                "type": "group",
                "all_members_are_administrators": true
            }
    }

}

我得到502错误的网关响应和低于JSON。

{
    "error": {
        "code": "ServiceError",
        "message": "Telegram API returned a result code indicating non-success"
    }
}

0 个答案:

没有答案