Guto Carvalho # 2022-01-05 @ BSB
Guto Carvalho # 2022-01-05 @ BSB

Nova Bridge para Telegram e Discord

by

Agora estamos usando o projeto TediCross para conectar Telegram e Discord. O projeto é feito em NodeJS, se mostrou mais leve e estável que o matterbridge que estava apresentando muitos problemas de rede e timeout.

Seguimos com o MatterBridge (escrito em GO) entre Matrix e Discord, esse ainda está valendo a pena.

Conheça o projeto 

Exemplo de arquivo de configuração

telegram:
  token: SEU_TOKEN_TELEGRAM
  useFirstNameInsteadOfUsername: false
  colonAfterSenderName: false
  skipOldMessages: true
  sendEmojiWithStickers: true
discord:
  useNickname: false
  token: SEU_TOKEN_DISCORD
  skipOldMessages: true
  replyLength: 100
  maxReplyLines: 2
bridges:
  - name: valida-bridge
    direction: both
    telegram:
      chatId: -1001707735774
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      relayCommands: true
      crossDeleteOnDiscord: true
    discord:
      channelId: '955441656465879100'
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      crossDeleteOnTelegram: true
  - name: devops-br
    direction: both
    telegram:
      chatId: -1001423205502
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      relayCommands: true
      crossDeleteOnDiscord: true
    discord:
      channelId: '955421330038226984'
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      crossDeleteOnTelegram: true
  - name: docker-br
    direction: both
    telegram:
      chatId: -1001020429061
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      relayCommands: true
      crossDeleteOnDiscord: true
    discord:
      channelId: '955421304515887135'
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      crossDeleteOnTelegram: true
  - name: cloudnative-br
    direction: both
    telegram:
      chatId: -1001375583910
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      relayCommands: true
      crossDeleteOnDiscord: true
    discord:
      channelId: '955421395645497375'
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      crossDeleteOnTelegram: true
  - name: cicd-br
    direction: both
    telegram:
      chatId: -1001283833531
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      relayCommands: true
      crossDeleteOnDiscord: true
    discord:
      channelId: '955421395645497375'
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      crossDeleteOnTelegram: true
  - name: gitlab-br
    direction: both
    telegram:
      chatId: -1001116126565
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      relayCommands: true
      crossDeleteOnDiscord: true
    discord:
      channelId: '955421455598891049'
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      crossDeleteOnTelegram: true
  - name: terraform-br
    direction: both
    telegram:
      chatId: -1001141750151
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      relayCommands: true
      crossDeleteOnDiscord: true
    discord:
      channelId: '955421523404021822'
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      crossDeleteOnTelegram: true
  - name: packer-br
    direction: both
    telegram:
      chatId: -1001496751272
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      relayCommands: true
      crossDeleteOnDiscord: true
    discord:
      channelId: '955421501576851526'
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      crossDeleteOnTelegram: true
  - name: ansible-br
    direction: both
    telegram:
      chatId: -1001112694111
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      relayCommands: true
      crossDeleteOnDiscord: true
    discord:
      channelId: '955421554383138846'
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      crossDeleteOnTelegram: true 
  - name: devosdays-br
    direction: both
    telegram:
      chatId: -1001109056730
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      relayCommands: true
      crossDeleteOnDiscord: true
    discord:
      channelId: '955426512176287834'
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      crossDeleteOnTelegram: true 
  - name: gitops-br
    direction: both
    telegram:
      chatId: -1001375992764
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      relayCommands: true
      crossDeleteOnDiscord: true
    discord:
      channelId: '955421349273292870'
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      crossDeleteOnTelegram: true
  - name: macusers-br
    direction: both
    telegram:
      chatId: -1001052488672
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      relayCommands: true
      crossDeleteOnDiscord: true
    discord:
      channelId: '955564437555781682'
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      crossDeleteOnTelegram: true
  - name: tecladomecanico
    direction: both
    telegram:
      chatId: -1001208515699
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      relayCommands: true
      crossDeleteOnDiscord: true
    discord:
      channelId: '955564291665309726'
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      crossDeleteOnTelegram: true
  - name: homeservers
    direction: both
    telegram:
      chatId: -1001178428134
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      relayCommands: true
      crossDeleteOnDiscord: true
    discord:
      channelId: '956331120247599144'
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      crossDeleteOnTelegram: true
  - name: vagas
    direction: both
    telegram:
      chatId: -1001682001563
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      relayCommands: true
      crossDeleteOnDiscord: true
    discord:
      channelId: '955598939380387950'
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      crossDeleteOnTelegram: true
  - name: conduta
    direction: both
    telegram:
      chatId: -1001095406242
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      relayCommands: true
      crossDeleteOnDiscord: true
    discord:
      channelId: '955573278796300318'
      relayJoinMessages: false
      relayLeaveMessages: false
      sendUsernames: true
      crossDeleteOnTelegram: true
debug: true

That’s it!

[s] Guto