0
votes

I created chat bot and wrote a simple java application to send https request to

https://api.telegram.org/bot(botcredentials)/sendMessage?chat_id={chatid}&text="+telegramMessage

and it works for my telegram account, I tried to connect some more users to this bot and they can't see any updates (I mean I receive message for myself, but no one else could see them).

Perhaps I should make my bot ?public? Or every user has its own chat_id with my bot?

1

1 Answers

0
votes

Every chat with your bot has its own id. You can get the chat id of your bot with another user as soon as someone interacts with your bot through the Update object received either through getUpdates method or a Webhook.