ASIMOV module for integration with the Telegram messaging service.
Installation with the ASIMOV CLI (recommended)
asimov module install telegram -vMake sure to follow the instructions from development section.
cargo install asimov-telegram-moduleTo start using the module you need to get authorized first:
asimov module config telegram
# or directly:
asimov-telegram-configuratorasimov-telegram-cataloger tg://chats
asimov-telegram-fetcher tg://chats/1234567
asimov-telegram-cataloger tg://chats/1234567/members
asimov-telegram-cataloger tg://chats/1234567/messages
asimov-telegram-fetcher tg://users/1234567
While for pre-built binaries we provide our own Telegram application credentials,
for development purposes you will have to create your own Telegram application.
You can do this here: https://my.telegram.org/
Then you will need to fill next environment variables:
ASIMOV_TELEGRAM_API_IDASIMOV_TELEGRAM_API_HASH
Make sure that OpenSSL & zlib are installed on your system.
On Windows you can install them with vcpkg:
vcpkg install openssl:x64-windows-static-md
vcpkg install zlib:x64-windows-static-mdOn Linux you also need to install the following packages:
sudo apt-get install -y libc++-dev libc++abi-devThen finally you can start development:
git clone https://github.com/asimov-modules/asimov-telegram-module.git- https://core.telegram.org/tdlib/getting-started
- https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1_function.html
- https://core.telegram.org/tdlib/docs/classtd_1_1td__api_1_1_object.html
- https://core.telegram.org/tdlib/docs/classes.html