Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.




Telegram

Author: Irene Cho

This plugin sends messages or files to Telegram.

Primary Features

  • You can send a file or a message to Telegram using a bot.
  • ‘Find a Chat Id’ operation will help to get a chat id.

Prerequisite

A. You must have a Telegram account.
B. You must make a Telegram bot.

(warning)NOTE
This plugin is designed as “Permissive Operation”.  Failing to complete sending message/file WILL NOT stop the bot itself. In cases of failure, error messages from Slack will be the output in the Return Value.




Need help?

Technical contact to tech@argos-labs.com


May you search all operations,

Contents




Anchor
tip1
tip1

Input

  1. Credentials
       ● Token
  2. Chat Id
  3. Message
  4. File (file path) (Only when sending as a User)
    Anchor
    tip2
    tip2



Crate a Telegram bot

  1. Login to your Telegram account (either with browser or with app): https://t.me/botfather

     



  2. Send messages to BotFather
    • Click ‘START’.
    • Type ‘/newbot’.
    • Type the name of your bot.
    • Type the username for your bot.
    • Save your token.

 


3. Invite your bot into a channel and send messages.


Anchor
tip3
tip3

Parameter Settings

1. ‘Find a Chat Id’: To get a chat id, you must invite the bot into the channel and start the conversation.




 

    • ‘id’ is Chat Id
    • The output may be different depending on the types of a chat which are private, channel, group, and supergroup.


2. ‘Send a message and file’



Anchor
tip4
tip4

Return Value

  • Select [Sting]
    - Success: User definable (default is 0)
    - Failure: Print error message but the bot will still run