Quick Start
Following these steps will allow you to see PyStark in action as quickly as possible.
Note
Installation of Python with version 3.6 or above is required.
Steps
Install PyStark with pip
$ pip3 install pystark
Generate a boilerplate using PyStark’s command-line tool.
$ pystark --boilerplate
Enter the newly created boilerplate directory.
$ cd boilerplate
Edit the
.env
file and fill your API_ID, API_HASH and BOT_TOKEN. Get the API keys from my.telegram.org and bot token from BotFather.
Run the bot using python
$ python3 bot.py
What does this do?
The above steps will help you set up your bot and run it. You can use the command /start to check if your bot is actually running.
Your bot now has four default commands:
|
Stop the bot using Ctrl+C.