GyverLibs / FastBot

Многофункциональная быстрая библиотека для Телеграм бота на esp8266/esp32
MIT License
187 stars 32 forks source link

Добавить парсинг поля username #65

Closed AlexanderKrutov closed 9 months ago

AlexanderKrutov commented 9 months ago

@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 9 months ago

пожалуйста) эта библиотека не развивается и будет архивирована, тк в разработке новая версия с полным функционалом bot api https://github.com/GyverLibs/FastBot2