Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to send messages with discussion? #305

Open
megaezz opened this issue Jan 12, 2021 · 4 comments
Open

How to send messages with discussion? #305

megaezz opened this issue Jan 12, 2021 · 4 comments

Comments

@megaezz
Copy link

megaezz commented Jan 12, 2021

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

@MyZik
Copy link
Contributor

MyZik commented Jan 17, 2021

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
Copy link
Author

megaezz commented Jan 18, 2021

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
Copy link

Igonter commented Feb 17, 2021

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
Copy link
Author

megaezz commented Feb 17, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants