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
Why I cannot create this json format to send text? #2843
Comments
If I change chat_id to any other chats, or change type to photo/file no behaviors either. |
You can use only identifiers received from TDLib, therefore you must receive the Additionally, you can check TDLib logs to see requests received by TDLib and their responses. |
Thanks for the reply. From my side, I could see the identifiers in a 10 digits format, and I have handled the json event each time I send to myself on other clients. For the TDLib, what level of logs should I use? level 2? I may have a try to redirect stdout to a file. |
You need level 3 or bigger to see all requests in the log. |
OK, I have do some tests on daemon thread.
The first one, loadChats and limit set to 1, I could send this message. But for the second, openChat or getChat, the log in severity 3 reports that Chat is not found with a 400 return. Why I got this thing? Just a little bit confusing. |
A "Chat not found" error means that you are trying to pass a hardcoded chat identifier to TDLib. You can only use identifiers received from the same TDLIb instance programmatically. |
I'm sorry that I may not get you. I just wanna send something to 'Saved Message' by TdLib. How could I manage this before sent sendMessage to target chat_id: 19xxxxxxxxx? What function should I call for receiving the chat_id? |
You need to use |
Because of the simple event handler architechture in python, I'm using tdjson to send text/file/photo to myself.
Why there's no return/sending behavior or any traceback error after excuted this command? Actually, this text has not been sent to my chat.
The text was updated successfully, but these errors were encountered: