#TIL Telegram sends entity offsets based on the UTF-16 encoding of the message text. My bot so far ran with the assumption that the offsets were for UTF-8, which finally broke today when someone used emojis in a message with URLs and triggered a crash.

Thankfully the fix was pretty straightforward msfjarvis.dev/g/walls-bot-rs/5