southbridgeio / tdlib-ruby

Ruby bindings and client for TDLib
MIT License
95 stars 48 forks source link

A lof of uncaught exceptions #58

Closed brauliobo closed 2 years ago

brauliobo commented 2 years ago

Hi, is there a way to hide these messages? Setting the log level doesn't hide them

Uncaught exception in update manager: [TD::Types::Message.new] :sender is missing in Hash input
Uncaught exception in update manager: [TD::Types::MessageReplyInfo.new] :recent_repliers is missing in Hash input
Uncaught exception in update manager: [TD::Types::Message.new] :sender is missing in Hash input
Uncaught exception in update manager: [TD::Types::MessageReplyInfo.new] :recent_repliers is missing in Hash input
Uncaught exception in update manager: [TD::Types::MessageReplyInfo.new] :recent_repliers is missing in Hash input
Uncaught exception in update manager: [TD::Types::MessageReplyInfo.new] :recent_repliers is missing in Hash input
Uncaught exception in update manager: [TD::Types::MessageReplyInfo.new] :recent_repliers is missing in Hash input
Uncaught exception in update manager: [TD::Types::Message.new] :sender is missing in Hash input
Uncaught exception in update manager: [TD::Types::Message.new] :sender is missing in Hash input
Uncaught exception in update manager: Can't find class for videoChat
Uncaught exception in update manager: [TD::Types::Message.new] :sender is missing in Hash input
Uncaught exception in update manager: [TD::Types::MessageReplyInfo.new] :recent_repliers is missing in Hash input
Uncaught exception in update manager: [TD::Types::MessageReplyInfo.new] :recent_repliers is missing in Hash input
Uncaught exception in update manager: [TD::Types::Message.new] :sender is missing in Hash input
Uncaught exception in update manager: [TD::Types::Message.new] :sender is missing in Hash input
Uncaught exception in update manager: [TD::Types::Message.new] :sender is missing in Hash input
Uncaught exception in update manager: [TD::Types::ChatMemberStatus::Administrator.new] :can_manage_voice_chats is missing in Hash input
Uncaught exception in update manager: Can't find class for videoChat
Uncaught exception in update manager: [TD::Types::MessageReplyInfo.new] :recent_repliers is missing in Hash input
Uncaught exception in update manager: [TD::Types::MessageReplyInfo.new] :recent_repliers is missing in Hash input
Uncaught exception in update manager: [TD::Types::MessageReplyInfo.new] :recent_repliers is missing in Hash input
brauliobo commented 2 years ago

I see this is unmaintained :cry: Using https://github.com/seorgiy/tdlib-schema most of the exceptions are gone. Also the env RUBYOPT="-W0" can be used to hide them all