Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

274
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda