Добавить парсинг поля username
AlexanderKrutov opened this issue · 1 comments
AlexanderKrutov commented
@AlexGyver, большое спасибо за библиотеку!
Было бы классно, если бы отдельно парсились поля username
и first_name
(ну, и до кучи, last_name
).
Сейчас нельзя получить имя пользователя (ник, логин) в Телеграм. Только имя (без фамилии).
Сейчас так:
(FastBot) userID <=> (JSON) message.from.id
(FastBot) username <=> (JSON) message.from.first_name
(FastBot) ??? <=> (JSON) message.from.username
(FastBot) ??? <=> (JSON) message.from.last_name
А хотелось бы что-то вроде:
(FastBot) userID <=> (JSON) message.from.id
(FastBot) username <=> (JSON) message.from.username
(FastBot) firstName <=> (JSON) message.from.first_name
(FastBot) lastName <=> (JSON) message.from.last_name
GyverLibs commented
пожалуйста) эта библиотека не развивается и будет архивирована, тк в разработке новая версия с полным функционалом bot api https://github.com/GyverLibs/FastBot2