pyrofork/docs/source/start/examples/hello_world.rst
wulan17 8353e5a2a2
Pyrofork: Full rebrand
Signed-off-by: wulan17 <wulan17@nusantararom.org>
2024-02-06 04:41:59 +07:00

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())