Skip to content

Instantly share code, notes, and snippets.

View Ahe4d's full-sized avatar
🖨️
I'm game

Etienne Ahe4d

🖨️
I'm game
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ahe4d on github.
  • I am aheaddy (https://keybase.io/aheaddy) on keybase.
  • I have a public key ASBDqNobKcLkxGUta6zEI0WreekPWn2uTKjN7aX6EQSStwo

To claim this, I am signing this object:

@Ahe4d
Ahe4d / telegram-bridge.js
Last active November 30, 2023 20:37
Node.js program creating a bridge between Telegram and Discord.
// Telegram-Discord bridge
const TelegramBot = require('node-telegram-bot-api'); // https://github.com/yagop/node-telegram-bot-api
const Discord = require('discord.js'); // https://github.com/discordjs/discord.js
/* Values:
token: Telegram bot token (logging into Telegram's API, you can get this from @BotFather on Telegram)
token2: Discord bot token (logging into Discord's API, you can get this from Discord's developer docs > my apps > app)
channelid: Discord channel ID (channel the Discord bot can access, right clicking a channel and clicking copy ID with developer mode enabled)
*/
const token = '';