Based on the read_messages_serial.py script from brad28b/meshtastic-cli-receive-text.
This script forwards Meshtastic messages to a Telegram bot — and vice versa.
Install dependencies
pip install meshtastic pypubsub requestsand clone this repo.
- Create your own bot via BotFather.
- Obtain your bot token and chat ID for the chat where you want to receive Meshtastic messages.
- Edit the following variables at the top of the script:
BOT_TOKEN = "your_bot_token_here"
CHAT_ID = "your_chat_id_here"Once everything is configured, run the script:
python meshchat_telegram.pyThe script will automatically forward messages between your Meshtastic device and your Telegram chat.
Based on original work from:
MIT License © 2025