CLI usage demonstration: sending and receiving messages. (The example's bot token has been revoked)
- Create bot using
@BotFather
and get its token - Create public dead drop channel and add the bot as an admin
- Send a message using the
transport.py
script (No requirements needed!)
Example:
python .\transport.py send -t 0123456789:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -n testchannelname -f Sender -c "This is the coolest test message!!!"
- Read the message using the
transport.py
script
Example:
python .\transport.py read -n testchannelname
You can integrate Kotlin classes Message.kt
and TelegramClient.kt
for the usage inside Android app