-
Open
config_template.ini
and insert yourapi_id
andapi_hash
. Pyrogram provides an explanation on how to obtain these over at the Pyrogram Docs - API Keys -
Rename or copy the template file
config_template.ini
to justconfig.ini
in order to allow Pyrogram to parse it automatically.
Remember that in a productive environment, you should probably use environment variables or another configuration source and pass them directly to the initializer of the Client. However, for the sake of simplicity in these example, the .ini approach works well to get up and running quickly.