Telegram bot or plugin

lux@raspberrypi:~ $ dmesg|grep tty
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_hdmi=0 video=HDMI-A-1:1920x1080M@60 smsc95xx.macaddr=E4:5F:01:99:45:6C vc_mem.mem_base=0x3eb00000 vc_mem.mem_size=0x3ff00000 console=ttyS0,115200 console=tty1 root=PARTUUID=1d124286-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
[ 0.000385] printk: console [tty1] enabled
[ 1.622154] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 36, base_baud = 0) is a PL011 rev2
[ 5.541161] systemd[1]: Created slice system-getty.slice.
[ 9.762588] usb 1-1.2.4: cp210x converter now attached to ttyUSB0

I left usb0. There is a connection with the device. Nodes in telegram shows. But it does not forward messages from telegram to meshtastiс and back

  • Enable debug mode in mesh.ini
  • Give admin permissions to bot in telegram room
  • Watch logs after executing make run
1 Like

Everything works! super! Thank YOU! I pointed out the wrong room id

I looked at the files, is there an option to connect gptchat?

Yes, there is. It is only available to Meshtastic device users, not through Telegram and requires some tweaking. You need to have OPENAI_API_KEY environment variable set to API Key from OpenAI. Model is gpt-3.5-turbo, not gpt-4 (which is not general availability anyway). Play around, let me know

1 Like

A Matrix <> Meshtastic Relay was announced today at This Week in Matrix 2023-04-28 | Matrix.org

2 Likes

Almost there! tg <> meshtastic is working /qr and /nodes commands in tg respond and give info. Messages from meshtatic to tg don’t show

What is the room id and where do I find it?

Invite your bot to your Telegram channel first, then enable debug mode in mesh.ini.
By posting something in that Telegram channel, you’ll get debug message in your console with big negative number, like -12334525235, that’ll be your room id.

Also, make sure that bot that you’ve invited has admin permissions.

Thank you telegram gateway is running.