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

Not send message with client.session storage #9

Open
Bloodielie opened this issue Jul 13, 2021 · 3 comments
Open

Not send message with client.session storage #9

Bloodielie opened this issue Jul 13, 2021 · 3 comments

Comments

@Bloodielie
Copy link

Bloodielie commented Jul 13, 2021

If using in-memory storage everything works well and messages are sent. Chats open with any storage.

secret_chat_manager = SecretChatManager(client, session=client.session, auto_accept=True)
await client.connect()
chat = await secret_chat_manager.start_secret_chat("username")
print(chat)
await asyncio.sleep(5)
msg = await secret_chat_manager.send_secret_message(chat, "test")
print(msg)
await asyncio.sleep(5)
print("disconnect")
await client.disconnect()
@painor
Copy link
Owner

painor commented Jul 13, 2021

could you explain more ? what is the error ?

@Bloodielie
Copy link
Author

Bloodielie commented Jul 13, 2021

There are no errors, the message is simply not sent. The SentEncryptedMessage object is returned but there is no message in the telegram app. If i use storage in memory, the behavior of the program is exactly the same, however, a message arrives in the telegram.

@Dmitry074
Copy link

How can i send msg in secret chat ?

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

3 participants