rubenlagus / TelegramBotsExample

A simple to use library to create Telegram Bots in Java
GNU General Public License v3.0
484 stars 229 forks source link

Create user object from username or id #3

Closed yazeed44 closed 9 years ago

rubenlagus commented 9 years ago

Hi, could you please explain a bit what you mean?

yazeed44 commented 9 years ago

Ok i have the username , can i fetch the whole user object from it (Query)

rubenlagus commented 9 years ago

No, bots can no contact users by username, they need the userId that it received with each message.