just waiting for a telegram bot? or a plugin … something that will enable you to communicate with the outside world?
A bot exists, I have not I have not used it myself:
I think a mqtt/ matrix bridge is in the works, not sure how far away though.
That woul be awesome. Do you have a repo page for it (mqtt/matrix)?
You can try my bot.
Once you have API key / token, paste it on line 15. Then just plug meshtastic device in USB port.
When you invite bot into chat write /help and it returns info like this:
I am meshtastic bot! /send messages will transmit your message /enable starts recieving messages to chat /disable will stop receiving messages /printurl to get url for Android APP /nodes print some information from NodeDB
You can invite bot to many chats or groups. You can control it by /enable or /disable commands which saves ID of chat or goups into file so after rebooting your bot you dont need to /enable it again.
For more information read python code, it is just few lines and I think it is pretty straightforward.
I have already tried another bot. but it transmits messages one way from the telegram. I will definitely try your bot! in a few days.
na@na-K61IC:~$ python3 meshtel.py
Traceback (most recent call last):
File “meshtel.py”, line 137, in
File “/home/na/.local/lib/python3.8/site-packages/telebot/init.py”, line 660, in polling
self.__threaded_polling(non_stop, interval, timeout, long_polling_timeout, allowed_updates)
File “/home/na/.local/lib/python3.8/site-packages/telebot/init.py”, line 722, in __threaded_polling
File “/home/na/.local/lib/python3.8/site-packages/telebot/init.py”, line 682, in __threaded_polling
File “/home/na/.local/lib/python3.8/site-packages/telebot/util.py”, line 135, in raise_exceptions
File “/home/na/.local/lib/python3.8/site-packages/telebot/util.py”, line 87, in run
File “meshtel.py”, line 38, in send_enable
AttributeError: ‘str’ object has no attribute ‘append’
this bot also does not forward messages, unfortunately.
i tried Chucknorris bot, works on daily basis (little complex to setup, not on meshtastic side but on API credentials side )
Run ./create_blank_chati_ds.py. Your issue is sometihing around pickle and file which handles the ids of enabled chats.
chatids_db_file = ‘chat_ids.data’
I have not entered the required data on this line. Now everything is working hurray!
Thanks for the answer!
where and what needs to be fixed in the bot so that messages are sent without the “send” command?
And also, so that messages from the Meshtastic are automatically received by the bot?
Sending without “send” or any other keyword is not implemented.
If you enabled bot in a chat by /enable it will print every message from Meshtastic.when recieved.
I needed bidirectional Meshtastic <-> Telegram room gateway with some additional features (like map) so I wrote my own: GitHub - tb0hdan/meshtastic-telegram-gateway: telegram bot that forwards messages to and from meshtastic device