serilog-contrib / Serilog.Sinks.Telegram.Alternative

Serilog.Sinks.Telegram.Alternative is a library to save logging information from Serilog to Telegram.
MIT License
36 stars 12 forks source link

Make chat identifiers long instead of int #21

Closed SeppPenner closed 2 years ago

SeppPenner commented 2 years ago

From https://core.telegram.org/bots/api-changelog

⚠️ WARNING! ⚠️ User identifiers will become bigger than 2^31 - 1 before the end of this year and it will be no longer possible to store them in a signed 32-bit integer type. User identifiers will have up to 52 significant bits, so a 64-bit integer or double-precision float type would still be safe for storing them. Please make sure that your code can correctly handle such user identifiers.

SeppPenner commented 2 years ago

Since PostMessage(string message, string chatId) uses a string as chat_id, this is not needed.