-
Notifications
You must be signed in to change notification settings - Fork 25
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
any example for sendMessage #27
Comments
It is not trivial, but it is covered in tdlib documentation. We have to add it to our documentation
|
@maxvgi Thank you very much for example! =) And do you know, why after call
Always getting answer:
but send message work - ok :) And as i understand "sendMessage" impossible without "openChat", right? |
@maxvgi i found out: if i not open chat on the my phone (current telegram app) and don't send any in chat (via phone), I can't send Message via TDLib.
because it doesn't work. What do you think? |
@yaroslavche , @maxvgi I think i found ansewer for my question tdlib/td#88 |
@merlinkory as levlam says simply use $chatName = 'telegram';
$result = $client->query(json_encode(['@type' => 'searchPublicChat', 'username' => $chatName]), 3); UPD. Oh, I understand the question. I think (but not sure) - you need use td databases (set in tdlib parameters) and client will do all work for you =) |
Ok. |
Could you give some example for sendMessage?
following is not work
i see:
The text was updated successfully, but these errors were encountered: