alt-art / TelegramBridge

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

not a bug but... #19

Closed PystoyPlayer closed 4 months ago

PystoyPlayer commented 5 months ago
[17:19:36 ERROR]: [TelegramBridge] Error editing message: Error executing org.telegram.telegrambots.meta.api.methods.updatingmessages.EditMessageText query: [400] Bad Request: message is not modified: specified new message content and reply markup are exactly the same as a current content and reply markup of the message
[17:19:36 ERROR]: [TelegramBridge] TelegramBridge-2.1.3.jar//org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod.deserializeResponseInternal(PartialBotApiMethod.java:54)
[17:19:36 ERROR]: [TelegramBridge] TelegramBridge-2.1.3.jar//org.telegram.telegrambots.meta.api.methods.PartialBotApiMethod.deserializeResponseSerializable(PartialBotApiMethod.java:44)
[17:19:36 ERROR]: [TelegramBridge] TelegramBridge-2.1.3.jar//org.telegram.telegrambots.meta.api.methods.botapimethods.BotApiMethodSerializable.deserializeResponseFromPossibilities(BotApiMethodSerializable.java:31)
[17:19:36 ERROR]: [TelegramBridge] TelegramBridge-2.1.3.jar//org.telegram.telegrambots.meta.api.methods.botapimethods.BotApiMethodSerializable.deserializeResponseMessageOrBoolean(BotApiMethodSerializable.java:24)
[17:19:36 ERROR]: [TelegramBridge] TelegramBridge-2.1.3.jar//org.telegram.telegrambots.meta.api.methods.updatingmessages.EditMessageText.deserializeResponse(EditMessageText.java:130)
[17:19:36 ERROR]: [TelegramBridge] TelegramBridge-2.1.3.jar//org.telegram.telegrambots.bots.DefaultAbsSender.sendApiMethod(DefaultAbsSender.java:1182)
[17:19:36 ERROR]: [TelegramBridge] TelegramBridge-2.1.3.jar//org.telegram.telegrambots.meta.bots.AbsSender.execute(AbsSender.java:61)
[17:19:36 ERROR]: [TelegramBridge] TelegramBridge-2.1.3.jar//org.altart.telegrambridge.bot.TelegramBot.editSystemMessage(TelegramBot.java:194)
[17:19:36 ERROR]: [TelegramBridge] TelegramBridge-2.1.3.jar//org.altart.telegrambridge.bot.feature.PinMessage.updatePinnedMessage(PinMessage.java:43)
[17:19:36 ERROR]: [TelegramBridge] TelegramBridge-2.1.3.jar//org.altart.telegrambridge.bot.feature.PinMessage.<init>(PinMessage.java:16)
[17:19:36 ERROR]: [TelegramBridge] TelegramBridge-2.1.3.jar//org.altart.telegrambridge.bot.TelegramBot.<init>(TelegramBot.java:37)
[17:19:36 ERROR]: [TelegramBridge] TelegramBridge-2.1.3.jar//org.altart.telegrambridge.TelegramBridge.onEnable(TelegramBridge.java:46)
[17:19:36 ERROR]: [TelegramBridge] org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281)
[17:19:36 ERROR]: [TelegramBridge] io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:189)
[17:19:36 ERROR]: [TelegramBridge] io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104)
[17:19:36 ERROR]: [TelegramBridge] org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507)
[17:19:36 ERROR]: [TelegramBridge] org.bukkit.craftbukkit.v1_20_R1.CraftServer.enablePlugin(CraftServer.java:656)
[17:19:36 ERROR]: [TelegramBridge] org.bukkit.craftbukkit.v1_20_R1.CraftServer.enablePlugins(CraftServer.java:567)
[17:19:36 ERROR]: [TelegramBridge] net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:640)
[17:19:36 ERROR]: [TelegramBridge] net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:439)
[17:19:36 ERROR]: [TelegramBridge] net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:345)
[17:19:36 ERROR]: [TelegramBridge] net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1116)
[17:19:36 ERROR]: [TelegramBridge] net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:322)
[17:19:36 ERROR]: [TelegramBridge] java.base/java.lang.Thread.run(Thread.java:1589)
PystoyPlayer commented 5 months ago

just add a fallback message instead this big error

alt-art commented 5 months ago

This is important for debug and is good information to provide if something is wrong, I don't know if I can provide something to suppress this error

alt-art commented 5 months ago

I can simply not run this on start, and the server message will be updated only when someone enters the server

alt-art commented 5 months ago

What you think?

PystoyPlayer commented 5 months ago

I can simply not run this on start, and the server message will be updated only when someone enters the server

Sounds ok but can you also add "Player quit" message when a server is restarting ?

alt-art commented 5 months ago

I can simply not run this on start, and the server message will be updated only when someone enters the server

Sounds ok but can you also add "Player quit" message when a server is restarting ?

How exactly? I don't understand exactly what you want.

Every restart show the message as a player left the game?

PystoyPlayer commented 5 months ago

I can simply not run this on start, and the server message will be updated only when someone enters the server

Sounds ok but can you also add "Player quit" message when a server is restarting ?

How exactly? I don't understand exactly what you want.

Every restart show the message as a player left the game?

https://cln.sh/G3sFvdjn

PystoyPlayer commented 4 months ago

any news ?

alt-art commented 4 months ago

I am making tests for the next release to make sure everything will work as expected I don't want to make the same mistake as last time