Api icon indicating copy to clipboard operation
Api copied to clipboard

How to send messages with discussion?

Open megaezz opened this issue 5 years ago • 4 comments

I configured channel to support post discussions. When posting manually - all works, but through the API - comments not available.

megaezz avatar Jan 12 '21 15:01 megaezz

How you do it? sendMessage doesn't support to prived the linked_chat_id parameter or else... But you can get parameter from Message or Chat object. Did you try it?

MyZik avatar Jan 17 '21 21:01 MyZik

Yes I send message by sendMessage: $bot->sendMessage($chatId, $text, 'html', false, null, $keyboard); I linked discussion chat on settings in Telegram app. So when I posting by application - I see comments icon. But by API - not. I didn't understand your advice about Message or Chat object. If it doesn't bother you, could you send an example of this code?

megaezz avatar Jan 18 '21 15:01 megaezz

Hello! Have you found a solution? I am interested, too. How to send a message into channel by bot so that it will have a discussion in the linked group?

Igonter avatar Feb 17 '21 14:02 Igonter

Hello! Have you found a solution? I am interested, too. How to send a message into channel by bot so that it will have a discussion in the linked group?

Unfortunately still didn't find

megaezz avatar Feb 17 '21 16:02 megaezz