For a course project I try to implement a bot in Telegram. Tell me where to look or how to be? There is a user base with phone numbers, is it possible, having a phone number, to get TelegramUserId and create a chat with it?

  • five
    Bots are forbidden to start a conversation first, otherwise there would be a lot of spam. - Komdosh
  • Well, as far as I know, in order to avoid spam - the bot can not send messages to the user until he agrees by pressing the start button, is it possible to at least initialize the chat? - dstiven
  • As mentioned above, the bot does not have the ability to start a conversation first, but you can implement a telegraph client that will simulate actions on behalf of this account (the desired function will be available there). Maybe there are any ways to implement this action in Java, I know that Telethon is used for python, there must be analogues in other languages) - Milkiweed Gtlt

0