Open MehmetKay-sudo opened 3 years ago
I'm not sure wether you understood correctly what I was trying to say on Telegram. The goal is not exactly writing a module for the Bot, but to write a framework that can be implemented by bots, e.g. karatekbot. So my thought would be that you write a module for defrag / the API that generates a captcha image and the possibility to validate the users input regarding that image.
ok, then i did not understand correctly. Thanks for explaining again.
Just to get it right: with the API that generates the captcha image, we validate also if the user is no bot?
but our bots in this framework communicate with the users
Just to get it right: with the API that generates the captcha image, we validate also if the user is no bot?
Your question is: "If a bot joins a chat, what should the captcha-bot do"? Jens is the expert on bots, so he should tell you. But if this is your question, I think the logic goes like this:
In other words, you end up banning every entity that is either an unknown bot or a user who failed the captcha.
By the way there are 2 parts in this feature:
(2) heavily depends on your knowledge of Matrix and Telegram's API (for the latter see: https://core.telegram.org/bots/api). (1) on the other hand can be done without any knowledge of these APIs.
yes, i found the page: https://core.telegram.org/bots/api.
thanks!
i have not deep knowledge of Matrix and Telegram API, so i'll find a way.
i have not deep knowledge of Matrix and Telegram API, so i'll find a way.
Then you can start with (1) :D
So, let me make clear how I think is the best way for this to work.
So defrag must only implement what is done by the API, so everything that starts with [API]. The bot side of things can then be implemented by the bot developers, probably me, as I am planning to rewrite my bot to benefit from this API.
I hope this makes clear how I think it should be done. If you think another way is better, please tell me.
@MehmetKay-sudo For generating captcha images, you can look at the (uncompleted) work I did on my telegram bot. Check the send_captcha()
function in https://github.com/KaratekHD/Nemesis/blob/master/tg_bot/modules/welcome.py
It's not a good implementation, but should give you an idea how the captcha
library works.
Wow, your code looks amazing. I’ll check that.
Von meinem iPhone gesendet
Am 09.08.2021 um 10:15 schrieb Jens @.***>:
Assigned #44 to @MehmetKay-sudo.
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or unsubscribe.
the step by step description helps me a lot, to understand the procedure.
The aim in resolving this issue is to write a module for @karatekbot in telegram.