Prerequisites

Have tdlib built and libtdjson.so installed into library search path (here are some links), usually .so file should be copied somewhere like /usr/lib, /usr/lib64 or /lib64.

Using and running

See examples

Get your app_id and app_hash at https://my.telegram.org/apps and run

$ API_ID=... API_HASH=... cargo run --example get_me