OpenBullet2 icon indicating copy to clipboard operation
OpenBullet2 copied to clipboard

ChatID Telegram

Open antigeky opened this issue 2 years ago • 1 comments

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

antigeky avatar Apr 05 '23 15:04 antigeky

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

openbullet avatar Aug 09 '23 11:08 openbullet