alt-art / TelegramBridge

Simple spigot plugin to make communication with groups on Telegram
https://modrinth.com/plugin/telegram-bridge
MIT License
2 stars 0 forks source link

several things #16

Closed PystoyPlayer closed 3 months ago

PystoyPlayer commented 4 months ago

I tried to copy config from https://github.com/alt-art/TelegramBridge/blob/main/CONFIG.md (which seems to be outdated) but it reset to

botToken: ...
chats:
- pinnedMessageId: 50509
  id: '...'
  thread: null
lang: ru

Also on plugin reload Shot (2024-06-07 at 12 19PM)@2x

And where's pinned message customization ? Don't see it anywhere and always get this one:

Hey welcome to the chat!
There are 0 players online
PystoyPlayer commented 4 months ago

hm now it broke after restart Shot (2024-06-07 at 12 29PM)@2x

botToken: '00000000:123123123123123'
chats:
- pinnedMessageId: 50509
  id: '-100123123123'
  thread: null
lang: ru
alt-art commented 3 months ago

I am aware of those things, the pinnedMessageId now expect a string, but the config was setting the pinned Message to integer. I'm sorry for not working on these fixes early. You can get rid of this error by wrapping the value in quotes.

Also, the pinned message config is on the same file config.yml:

botToken: '00000000:123123123123123'
chats:
- pinnedMessageId: 50509
  id: '-100123123123'
  thread: null
lang: ru
pinned: "Message pinned"
alt-art commented 3 months ago

I will update the documentation

alt-art commented 3 months ago

New version 2.1.1 will resolve those crashes.