type-detector.py- Main moduleexample.py- Code with an example of userequirements.txt- List of libraries to install via pip.env.example- Example of a.envfile, take data frommy.telegram.org/apps
-
The
.envfile should be located in the same folder with the main code and contain the variables specified in the example —USERBOT_API_IDandUSERBOT_API_HASH -
The first time the
get_type_via_userbotfunction is called, the console will require you to enter the phone number in international format, and then the login code == start of the session, which will be saved in the filemy_own_app.session