我正在创建一个数据库,其中我的算法仅接受 Telegram ID 长度为 9 的用户的查询。
user_id: 123456789;
length = user_id.length;
display(length);
OUTPUT: 9
是否存在长度小于 9 的 Telegram 用户 ID?
任何人都可以提出建议,以便我也可以将我的算法更新为该 ID 的长度。>
最佳答案
Unique identifier for this chat. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
关于telegram - Telegram user_id 的长度可以是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51351225/