mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Compare commits
4 commits
dd3f6e1245
...
f7c7362ca2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7c7362ca2 | ||
|
|
cb38d6a02b | ||
|
|
42e9410aad | ||
|
|
05b2ec0e07 |
2 changed files with 15 additions and 2 deletions
|
|
@ -80,7 +80,20 @@ Using async_pymongo (Recommended for python3.9+):
|
|||
print(await app.get_me())
|
||||
|
||||
|
||||
Using motor:
|
||||
Using official mongodb driver:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from pymongo import AsyncMongoClient
|
||||
from pyrogram import Client
|
||||
|
||||
conn = AsyncMongoClient("mongodb://...")
|
||||
|
||||
async with Client("my_account", mongodb=dict(connection=conn, remove_peers=False)) as app:
|
||||
print(await app.get_me())
|
||||
|
||||
|
||||
Using motor (Deprecated, but still works):
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ authors = [{ name = "wulan17", email = "mayuri@mayuri.my.id" }]
|
|||
dependencies = ["pyaes==1.6.1", "pysocks==1.7.1", "pymediainfo-pyrofork>=6.0.1,<7.0.0"]
|
||||
readme = "README.md"
|
||||
license = "LGPL-3.0-or-later"
|
||||
requires-python = "~=3.9"
|
||||
requires-python = ">=3.9"
|
||||
classifiers = [
|
||||
"Development Status :: 5 - Production/Stable",
|
||||
"Intended Audience :: Developers",
|
||||
|
|
|
|||
Loading…
Reference in a new issue