In [email protected]_bot with examples

Redken in action with some examples Let’s learn about using Redken in Telegram or Discord with some examples…. but first, let’s add the bot to a new group based on the platform we’re using: Redken_bot in Telegram Redken in discord Let’s get hands on! First of all, some of the commands shown will require admin privileges in the chat (from the user point of view) and from Redken. Redken uses admin privileges to:...

January 20, 2022 · 3 min · Pablo Iranzo Gómez

LDAP query from Python

Recently, some colleagues commented about validating if users in a Telegram group were or not employees anymore, so that the process could be automated without having to chase down the users that left the company. One of the fields that can be configured by each user, is the link to other platforms (Github, LinkedIn, Twitter, Telegram, etc), so querying an LDAP server could suffice to get the list of users....

October 19, 2021 · 2 min · Pablo Iranzo Gómez

Redken machine learning for spam detection

For some of the telegram groups I’m in, I’ve been detecting users that after some period of time, just publish spam messages of any topic. There are many bots for controlling when a user joins, by showing a CAPTCHA that user must resolve (either clicking a button, answering a mathematical operation, inputting a CAPTCHA image text, etc). Some time ago, a colleague was using Machine Learning and I wanted to have a look at it and it would make a good feature to implement....

June 24, 2021 · 8 min · Pablo Iranzo Gómez

Language detection in @redken_bot

Introduction Before the move to Python3, redken had per-group language configuration by using i18n, with the upgrade/rewrite of Python3 code there were some issues and I had to remove the support, defaulting everything to English (most of the outputs where already in English so not a great loss). On another side, having to manually configure each channel could be problematic as most users just add the bot to their groups but don’t care about other settings that might be useful like welcome message, inactivity for kicking out inactive users, etc....

March 25, 2020 · 6 min · Pablo Iranzo Gómez

Python and iCalendar ICS processing

Introduction iCalendar (.ics or webcal) is a standard for providing ‘calendar’ information over text file, it allows to define events, etc and it’s ideal to ‘subscribe’ over the internet to remote calendars, which is commonly used to show free/busy slots for scheduling meetings, etc. If you’re familiar with Google Calendar or others, it uses ‘ics’ under the hood, and you can get full url for it so that it can be shared....

September 17, 2019 · 5 min · Pablo Iranzo Gómez
This blog is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com.