Skip to content

Instantly share code, notes, and snippets.

View mitinarseny's full-sized avatar
🪐

Arseny Mitin mitinarseny

🪐
View GitHub Profile
@mitinarseny
mitinarseny / sendMessage.md
Last active January 18, 2020 12:50
Send Telegram messages with curl

Send Telegram messages with curl

Dependencies

  • curl: command-line tool for transferring data with URLs
  • jq: lightweight and flexible command-line JSON processor

Environment

Firstly, you need to export BOT_TOKEN and CHAT_ID:

export BAT_TOKEN=""
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->