You can choose as many fonts as you like, but keep in mind that all the fonts are loaded into your memory, so use a lot but not to many.
fonts (list) the fonts to use instead of the builtin ones (must be a list of.default_timeout (float) the default timeout to use if captcha.options is not set.Currently supported 'en', 'ru', 'de', 'uz' and 'ar' default_language (str) the default language to use if captcha.options is not set.You can add the following optional parameters: Initialize the bot and the captcha_manager:ĬaptchaManager requires the user_id of your TeleBot instance! You get it with bot.get_me().id
Writing a simple CAPTCHA bot: Import TeleBot and the CapchaManager: from telebot import TeleBot from pyTelegramBotCAPTCHA import CaptchaManager Note: You should have basic knowledge about the pyTelegramBotAPI You can also choose between digits and hexdigits for your CAPTCHA generation. It's very easy to integrate into your existing bot and also easy to customize the CAPTCHA image with your own fonts. Then this package can help you to protect your groups and members! Pip install pyTelegramBotCAPTCHA -upgradeĭo you have problems with userbots that spam your groups or add your group members to other chats? Installation: pip install pyTelegramBotCAPTCHAĭo not forget to update the package from time to time by calling An easy to use and (hopefully useful) image CAPTCHA soltion for pyTelegramBotAPI.