Skip to content

Instantly share code, notes, and snippets.

@ilyoff
Created November 7, 2018 23:12
Show Gist options
  • Select an option

  • Save ilyoff/cd10949395a5248a08b59f39ce39fee7 to your computer and use it in GitHub Desktop.

Select an option

Save ilyoff/cd10949395a5248a08b59f39ce39fee7 to your computer and use it in GitHub Desktop.
make channel public, if it is private, take it's public name and use in the url. Make request, in response you'll get the id.
curl 'https://api.telegram.org/bot<bot-token>/sendMessage?chat_id=@<channel_name>&text=123'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment