Che931 / telegram-app-example

A simple telegram app using Telethon library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TELEGRAM-APP-EXAMPLE

A simple example to understand how Telethon library works. Read More!

Installing:

  • Create a virtual enviroment to avoid some dependencies problems
  • Install dependencies pip install -r requirements.txt
  • Rename settings.example.py to settings.py. You must not commit that file.
  • Visit Telegram website and create a new app.
  • Paste APP api_id and APP api_hash into settings.py
  • Paste one of your dialogs' name into CHANNEL_NAME to get its latest msgs.

In the first run the library will require your phone number to send you an activation code. The number must include the prefix (+1, +34...) . Some extra files will be created and if you remove then, the activation process will be required again.

TODO:

  • Send a test message to yourself
  • Show X messages from every channel
  • Listen incoming messages

About

A simple telegram app using Telethon library

License:The Unlicense


Languages

Language:Python 100.0%