Telegram Bot

Telegram is a cloud-based instant messaging and voice over IP service

Go to site

Integrate the Telegram Bot API with the MySQL API

Setup the Telegram Bot API trigger to run a workflow which integrates with the MySQL API. Pipedream's integration platform allows you to integrate Telegram Bot and MySQL remarkably fast. Free for developers.

Send Telegram Message

Sends a message using the sendMessage API method: https://core.telegram.org/bots/api#sendmessage

 
Try it

Connect Telegram Bot

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://api.telegram.org/bot${auths.telegram_bot_api.token}/getMe`,
})

Connect MySQL

const mysql = require('mysql2/promise');

const { host, port, username, password, database } = auths.mysql

const connection = await mysql.createConnection({
  host,
  port,
  user: username,
  password,
  database,
});

const [rows, fields] = await connection.execute('SELECT NOW()');
console.log(rows)