Mayuri-Chan / pyrofork

Pyrogram fork with Adjustable web page preview, Quote Reply, Story & Topics Support, Mongodb session storage, and much more. go to https://pyrofork.wulan17.top/ for documentation.
https://pyrofork.wulan17.top
GNU Lesser General Public License v3.0
162 stars 78 forks source link

synchronous usage broken #70

Open gmankab opened 5 months ago

gmankab commented 5 months ago

Checklist

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