mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
20 lines
401 B
ReStructuredText
20 lines
401 B
ReStructuredText
hello_world
|
|
===========
|
|
|
|
This example demonstrates a basic API usage
|
|
|
|
.. code-block:: python
|
|
|
|
from pyrofork import Client
|
|
|
|
# Create a new Client instance
|
|
app = Client("my_account")
|
|
|
|
|
|
async def main():
|
|
async with app:
|
|
# Send a message, Markdown is enabled by default
|
|
await app.send_message("me", "Hi there! I'm using **Pyrofork**")
|
|
|
|
|
|
app.run(main())
|