openbullet / OpenBullet2

OpenBullet reinvented
MIT License
1.65k stars 455 forks source link

ChatID Telegram #885

Open GekySan opened 1 year ago

GekySan commented 1 year ago

There is a difference in the data type used for the "ChatId" property between Rurilib, OB2.core, and OB2.Native. While Rurilib and OB2.core use a "long" data type for this property, OB2.Native uses an "int" data type. As a result, when I enter a ChatID value in OB2.Native, the value is replaced by the maximum value for an "int" data type (2147483647).

Therefore, I suggest modifying the data type used for the "ChatId" property in OB2.Native to match the one used in Rurilib and OB2.core.

https://github.com/openbullet/OpenBullet2/blob/227f219dc2a88f6d9d2fb86a1c3377a289b2e73d/OpenBullet2.Native/Views/Dialogs/MultiRunJobOptionsDialog.xaml#L719 https://github.com/openbullet/OpenBullet2/blob/227f219dc2a88f6d9d2fb86a1c3377a289b2e73d/OpenBullet2.Native/Views/Dialogs/MultiRunJobOptionsDialog.xaml#L720

openbullet commented 10 months ago

Thank you for spotting this, can you open a PR?