MTProto transport for Elixir 


MTProto (protocol) transport implementation in Elixir, acts like gen_tcp and others, supports most service commands.
TODO
- Add checks for numbers in DH algorithm;
- Checks for salts and nonce hashes during authorization;
- Data Center migration;
- Server time synchronization (in RPC error 16/17);
- Handling RPC errors (bad_msg_notification).
Installation
- Add
mtprototo your list of dependencies inmix.exs:
def deps do
[{:mtproto, "~> 57.0.0-alpha"}]
end
- Ensure
mtprotois started before your application:
def application do
[applications: [:mtproto]]
end
Usage
...
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request