Telegram protocol

Possibility to receive textual and location messages from Telegram messenger into a flespi channel.
flespi parses the Telegram protocol messages into a JSON object with the fields listed below in the Parameters tab.

Gateway from the Telegram messenger into flespi acts as a Telegram bot that receives text and location messages from users and delivers them into the flespi channel. There is also a command that instructs the channel to send a text message back to the user from the bot.

Please read detailed instructions on how to create and use this channel.

flespi team created @WialonHostingBot for demo purposes so that you can forward location and text messages to Wialon Hosting in one click. To receive Telegram messages into the Wialon units, create the unit of the flespi gateway type and enter the unique ID given by the bot. With this protocol, you can create similar channels and configure them the way you want.

It is now also possible to send a setting with a message to the Telegram-type device via the flespi panel GUI or respective API call. To do so, you have to create a flespi device of the telegram device type. Use the ID issued by your bot as a User identifier. Once created, navigate to the Settings tab on the device screen and find the "Send a message to the user" setting in the Actions section. Type the message and click the Send icon to get it in your Telegram bot.

channel.id
number
ID of channel that received a message
chat.id
number
User's chat identifier
device.id
number
ID of device that received a message
device.name
string
Name of device that received a message
device.type.id
number
ID of device type of device that received a message
driver.message
string
Driver text message content
ident
string
Device unique identifier like serial number, IMEI, etc
media.image
object
Image file in media storage
media.video
object
Video file in media storage
peer
string
IP:port from which device connecting to the channel
position.direction
number
degrees
Heading angle at position detection moment
position.latitude
number
degrees
Latitude coordinate value
position.longitude
number
degrees
Longitude coordinate value
protocol.id
number
ID of protocol
server.timestamp
number
seconds
Timestamp when server received a message
timestamp
number
seconds
Message timestamp
Properties
Send a message to the user
message
Send a text message to the user, using bot API https://core.telegram.org/bots/api#sendmessage; the user should write first to the bot
text: Message text to send
parse_mode: Telegram's parse_mode parameter
Simple message
{"text":"Hello, flespi user!"}
Message with Markdown
{"text":"Hello, *flespi* `user`!","parse_mode":"Markdown"}