How can i get user id from @userinfobot using @username of any user using API

  api, bots, laravel, php, telegram

i am having an issue to get telegram user id using his username. there are few scenarios that i want to know is that possible or not

  1. if we have username of any user, can we get his/her user id from @userinfobot ?
  2. can we receive messages from user using Bot ?
  3. how to hide input option from bot ?
  4. how to add predefined buttons instead of input field ?
  5. also, if a user add our bot can we programmatically press the join button for him ?

it will be great help if anyone can answers the questions.
Thank you.

Source: Laravel

Leave a Reply