Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

281
Visualizações
telegraf.js: banChatMember() with custom chatId

I'm implementing moderation features for a telegram bot, part of it is that the bot should be able to ban a user from multiple groups / channels. I implemented a command that adds the group it was issued in to a moderatedChats.json, which is just a list of chatIds. When it comes to the command /gban i want to iterate over this list and let the bot ban the user in each group.

seems like telegraf's ctx.banChatMember() function only allows me to pass in the userid and automatically uses the chatid the command was issued in. Any ideas what to do? :)

Kind regards and thanks in advance <3

about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda