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

synchronous usage broken #70

Open
3 tasks done
gmankab opened this issue Jun 5, 2024 · 0 comments
Open
3 tasks done

synchronous usage broken #70

gmankab opened this issue Jun 5, 2024 · 0 comments

Comments

@gmankab
Copy link

gmankab commented Jun 5, 2024

Checklist

  • I am sure the error is coming from Pyrofork's code and not elsewhere
  • I have searched in the issue tracker for similar bug reports, including closed ones
  • I ran pip3 install -U git+https://github.com/Mayuri-Chan/pyrofork and reproduced the issue using the latest development version

Description

there is a synchronous useage guide in docs - https://pyrofork.mayuri.my.id/main/topics/synchronous.html

when i run the code it runs, throws no errors, but there are no any sent messages

Steps to reproduce

  1. copy code from synchronous usage guide
  2. run the code
  3. see that message was not sent

Code example

from pyrogram import Client

app = Client("my_account")

with app:
    app.send_message("me", "Hi!")
    print('sent')

Logs

.venv/bin/python test.py
sent
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