Naltox / telegram-node-bot

Node module for creating Telegram bots.
MIT License
724 stars 143 forks source link

Question : Getting firstName/lastName #162

Closed x4080 closed 7 years ago

x4080 commented 7 years ago

Hi, I'm trying to get firstName/lastName of the person who is chat with the bot, with the session api, there's only $.api.getMe(), which is resulting firstName/lastName of the bot

How yo get firstName/lastName of the person who is chat with the bot ?

Thanks

x4080 commented 7 years ago

Never mind, got it :

$.api.getChatMember($.chatId,$.userId)