Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

276
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!