Mr Bender Bot
Zero - Mr Bender Bot is a bot which bridges chat from Zero’s Telegram with #General-Chat in Zero’s Discord
Any chat from these channels will be relayed instantly.
The bot is able to relay text messages and media files between Discord and Telegram. @-mentions, URLs, code (both inline and block-style) works well
For a list of known bugs, or to submit a bug or feature request, see this repo’s “Issues” tab
Setting up the bot requires basic knowledge of the command line, which is bash or similar on Linux/Mac, and cmd.exe in Windows
cd
) command. Something like cd Downloads/TediCross-master
. Your exact command may differnpm install
example.settings.yaml
and name it settings.yaml
discord.token
. NOTE that the token is NOT the “Client Secret”. The token is under the section “App bot user” further down the pagenpm start
/chatinfo
. Put the info you get in the settings file.-
when entering it into the settings file'244791815503347712'
, not 244791815503347712
Done! You now have a nice bridge between a Telegram chat and a Discord channel
As mentioned in the step by step installation guide, there is a settings file. Here is a description of what the settings do.
telegram
: Object authorizing and defining the Telegram bot’s behaviourtoken
: The Telegram bot’s token. It is needed for the bot to authenticate to the Telegram servers and be able to send and receive messages. If set to "env"
, TediCross will read the token from the environment variable TELEGRAM_BOT_TOKEN
useFirstNameInsteadOfUsername
: EXPERIMENTAL If set to false
, the messages sent to Discord will be tagged with the sender’s username. If set to true
, the messages sent to Discord will be tagged with the sender’s first name (or nickname). Note that Discord users can’t @-mention Telegram users by their first name. Defaults to false
colonAfterSenderName
: Whether or not to put a colon after the name of the sender in messages from Discord to Telegram. If true, the name is displayed Name:
. If false, it is displayed Name
. Defaults to falseskipOldMessages
: Whether or not to skip through all previous messages cached from the telegram-side and start processing new messages ONLY. Defaults to true. Note that there is no guarantee the old messages will arrive at Discord in ordersendEmojisWithStickers
: Whether or not to send the corresponding emoji when relaying stickers to Discorddiscord
: Object authorizing and defining the Discord bot’s behaviourtoken
: The Discord bot’s token. It is needed for the bot to authenticate to the Discord servers and be able to send and receive messages. If set to "env"
, TediCross will read the token from the environment variable DISCORD_BOT_TOKEN
skipOldMessages
: Whether or not to skip through all previous messages sent since the bot was last turned off and start processing new messages ONLY. Defaults to true. Note that there is no guarantee the old messages will arrive at Telegram in order. NOTE: Telegram has a limit on how quickly a bot can send messages. If there is a big backlog, this will cause problemsuseNickname
: Uses the sending user’s nickname instead of username when relaying messages to Telegramdebug
: If set to true
, activates debugging output from the bot. Defaults to false
bridges
: An array containing all your chats and channels. For each object in this array, you should have the following properties:name
: A internal name of the chat. Appears in the logdirection
: Direction of the bridge. “both” for bidirectional, “d2t” for discord-to-telegram, “t2d” for telegram-to-discordtelegram.chatId
: ID of the chat that is the Telegram end of this bridge. See step 11 on how to aquire ittelegram.relayJoinMessages
: Whether or not to relay messages to Discord about people joining the Telegram chattelegram.relayLeaveMessages
: Whether or not to relay messages to Discord about people leaving the Telegram chatdiscord.guild
: ID of the server the Discord end of the bridge is in. If a message to the bot originates from within this server, but not the correct channel, it is ignored, instead of triggering a reply telling the sender to get their own bot. See step 11 on how to aquire itdiscord.channel
: ID of the channel the Discord end of the bridge is in. See step 11 on how to aquire itdiscord.relayJoinMessages
: Whether or not to relay messages to Telegram about people joining the Discord chatdiscord.relayLeaveMessages
: Whether or not to relay messages to Telegram about people leaving the Discord chatThe available settings will occasionally change. The bot takes care of this automatically