且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

电报机器人不适用于所有用户

更新时间:2023-11-19 12:26:16

好的,找到问题了,是pebcak.

Okay, found the issue, it was pebcak.

这个问题是因为我们的代码正在访问 json 数据中的 last_name,所以对于在他们的帐户中没有设置姓氏的用户来说,它会失败.

This issue was it was failing for users that had no last name set in their account because our code was accessing the last_name from the json data.

因此请确保您的代码不依赖于名字或姓氏.

So make sure your code does not rely on a first or last name.