TelegramBot / Api

Native PHP Wrapper for Telegram BOT API
MIT License
1.07k stars 324 forks source link

How to send messages with discussion? #305

Open megaezz opened 3 years ago

megaezz commented 3 years ago

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

MyZik commented 3 years ago

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?

megaezz commented 3 years ago

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?

Igonter commented 3 years ago

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?

megaezz commented 3 years ago

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