SMS to Telegram Forwarder

I made script with AI for myself that reads SMS (RAW DATA) from USB 3G modem on sends it to Telegram via BOT.

A script for MikroTik RouterOS that reads incoming SMS messages from a 3G/4G USB modem and forwards them to Telegram. This script solves multiple issues found in standard implementations, such as incorrect character encoding, missing parts of long messages, and garbage service SMS.

Supporst: English, Russian, Chinese (probably any language)

If someone maybe will need this here you go, feel free for edit or improve:

Github:
https://github.com/FlowerShopGuy/mikrotik-sms-telegram-forwarder/tree/main

Hi and thank you for your work!

Emojis (and possibly other special characters) may be decoded incorrectly, resulting in a sending error in Telegram.

For example, “:laughing:” (D83DDE06 as input data for ucs2ToUrlEncode) is decoded as %ED%A0%BD%ED%B8%86, but it is supposed to be %F0%9F%98%86 etc.

Hi! thanks for letting me know! Didn't thought about Emojis :laughing:

The new version is pushed to GitHub.

Now it's working as expected, great job! :clap: