Telegram Connector

Stable Version 1.0.1 (OutSystems 11)
Published on 16 Mar by 
Created on 16 Mar

Telegram Connector

Details
Helps you to connect to the Telegram Bot API, allowing you to send messages and control groups. For more information please see https://core.telegram.org/bots/api
Read More

Provides connectivity with Telegram Bot API, allowing you to send custom messages, photos, videos, moderate groups and more. For more information about the API please see Telegram Bots API


Currently, those are the available methods:

  • setWebhook

  • Use this action to specify a url and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, Telegram servers will send an HTTPS POST request to the specified url, containing a JSON-serialized Update. In case of an unsuccessful request, it will give up after a reasonable amount of attempts.

  • deleteWebhook

  • Use this action to remove webhook integration.

  • getWebhookInfo

  • Use this action to remove webhook integration.

  • getMe

  • Use this action to return basic information about the bot.

  • sendMessage

  • Use this action to send text messages.

  • forwardMessage

  • Use this action to forward messages of any kind.

  • sendPhoto

  • Use this action to send photos.

  • sendAudio

  • Use this action to send audio files, if you want Telegram clients to display them in the music player. Your audio must be in the .MP3 or .M4A format. On success, the sent Message is returned. Bots can currently send audio files of up to 50 MB in size.

  • sendDocument

  • Use this action to send general files. On success, the sent Message is returned. Bots can currently send files of any type of up to 50 MB in size.

  • sendVideo

  • Use this action to send video files, Telegram clients support mp4 videos. On success, the sent Message is returned. Bots can currently send video files of up to 50 MB in size.

  • sendAnimation

  • Use this action to send animation files (GIF or H.264/MPEG-4 AVC video without sound). On success, the sent Message is returned. Bots can currently send animation files of up to 50 MB in size.

  • sendLocation

  • Use this action to send point on the map.

  • sendVenue

  • Use this action to send information about a venue.

  • sendContact

  • Use this action to send phone contacts.

  • sendPoll

  • Use this action to send a native poll.

  • sendChatAction

  • Use this action when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). Example: The ImageBot needs some time to process a request and upload the image. Instead of sending a text message along the lines of “Retrieving image, please wait…”, the bot may use sendChatAction with action = upload_photo. The user will see a “sending photo” status for the bot.

  • kickChatMember

  • Use this action to kick a user from a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.

  • unbanChatMember

  • Use this action to unban a previously kicked user in a supergroup or channel. The user will not return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator for this to work.

  • setChatPhoto

  • Use this action to set a new profile photo for the chat. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.

  • deleteChatPhoto

  • Use this action to delete a chat photo. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.

  • setChatTitle

  • Use this action to change the title of a chat. Titles can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.

  • setChatDescription

  • Use this action to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.

  • pinChatMessage

  • Use this action to pin a message in a group, a supergroup, or a channel. The bot must be an administrator in the chat for this to work and must have the ‘can_pin_messages’ admin right in the supergroup or ‘can_edit_messages’ admin right in the channel.

  • unpinChatMessage

  • Use this action to unpin a message in a group, a supergroup, or a channel. The bot must be an administrator in the chat for this to work and must have the ‘can_pin_messages’ admin right in the supergroup or ‘can_edit_messages’ admin right in the channel.

  • leaveChat

  • Use this action for your bot to leave a group, supergroup or channel.

  • getChat

  • Use this action to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.)

  • getChatAdministrators

  • Use this action to get a list of administrators in a chat. On success, returns an Array of ChatMember objects that contains information about all chat administrators except other bots. If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned.

  • getChatMembersCount

  • Use this action to get the number of members in a chat.

  • getChatMember

  • Use this action to get information about a member of a chat.

  • stopPoll

  • Use this action to stop a poll which was sent by the bot.

  • deleteMessage

  • Use this action to delete a message, including service messages, with the following limitations: - A message can only be deleted if it was sent less than 48 hours ago. - Bots can delete outgoing messages in private chats, groups, and supergroups. - Bots can delete incoming messages in private chats. - Bots granted can_post_messages permissions can delete outgoing messages in channels. - If the bot is an administrator of a group, it can delete any message there. - If the bot has can_delete_messages permission in a supergroup or a channel, it can delete any message there.

What’s new (1.0.1)

New Stable version.

Reviews (2)
16 Mar
in version 1.0.1
Congratulations! Very useful and works perfectly.
16 Mar
in version 1.0.0
Nice integration, Telegram is useful for some things. I'll try it out :)
Category
Components, Connectors, Data Connector, IoT
Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from Lucas Vilela who created this component.
Dependencies
See all 1 dependencies
Requirements
Platform:
11.0.0.200
Database:
All
Stack:
.NET
Component Consumers
No consumers yet.
Weekly Downloads