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 can i send message to group chat rather than user id ? #178

Open
thavornc opened this issue May 7, 2020 · 0 comments
Open

How can i send message to group chat rather than user id ? #178

thavornc opened this issue May 7, 2020 · 0 comments

Comments

@thavornc
Copy link

thavornc commented May 7, 2020

Could I please know how to send message to group chat (thread id) as the similar request below,
$test = [
'recipient' => [
'thread_key' => '<THREAD_ID>',
],
'message' => [
'text' => 'hello, world - group chat!'
]
];

I understand that a send method $bot->send('', 'text message.')); call 'recipient' ==> 'id' always.
$test = [
'recipient' => [
'id' => '<Sender_ID>',
],
'message' => [
'text' => 'hello, world!'
]
];
so is there a way to call the method as $bot->send('<thread_id>', 'text message.'));

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

No branches or pull requests

1 participant