1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 04:08:59 +01:00
Go to file
2015-03-12 00:46:02 +09:00
.idea Initial commit3 2015-02-24 12:54:00 +03:00
.gitignore gitignore fix for jetbrains ide 2015-03-12 00:46:02 +09:00
mtproto.py Credentials parser. 2015-02-26 14:46:38 +03:00
prime.py Initial commit3 2015-02-24 12:54:00 +03:00
README.md README.md file 2015-03-11 18:42:20 +03:00
testing.py Credentials parser. 2015-02-26 14:46:38 +03:00
TL_schema Initial commit3 2015-02-24 12:54:00 +03:00

About this repo

This is Telegram API for python. Main aim is to implement MTProto protocol Telegram API on pure Python (not wrapped CLI) We'll try to make it work on Python 2 as well as 3.

Detailed description of API and protokol can be found here: https://core.telegram.org/api https://core.telegram.org/mtproto

Repo doesn't contain any credentials to connect Telegram servers. You can get your credentials from http://my.telegram.org

You shoud plase in the root of your repo 2 files:

  • credentials
  • rsa.pub

Config example for "credentials" file:

[App data]
api_id: 12345
api_hash: 1234567890abcdef1234567890abcdef
ip_adress: 112.134.156.178
port: 443

rsa.pub contains your RSA key.

testing.py

testing.py is used to test functionality of modules. Now it makes steps from https://core.telegram.org/mtproto/samples-auth_key:

  • sends PQ request to server
  • parses the result
  • factorizes PQ