How to send a message to the canal with a telegram



  • I'm making a request.

    https://api.telegram.org/bot187976149:AAGgl9VtPkDxh*********/sendMessage?chat_id=@test&text="hellow!" 
    

    @test -- name of my channel


    In response,-- Bad Request: channel not found." What am I doing wrong? Why can't you find a channel?



  • I figured it out, the wrong identifier set it up, we need to use the identifier from the link to the canal, it's unique.

    введите сюда описание изображения

    https://api.telegram.org/bot187976149:AAGgl9VtPkDxh*********/sendMessage?chat_id=@test345674&text="hellow!"
    

Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2