Category: Coding

Posted in Python

InstagramSizeBot: Empowering Instagram Posts with Square Photos and Small Frames

The provided program is a Python script that utilizes the aiogram library and PIL (Python Imaging Library)…

Posted in Coding Python

Server control by Telegram Bot – Run Shell commands by Python

I have more than one Telegram bots for different purposes but one day I realise I need…

Posted in Coding

Base syntax differences between Python and JavaScript – part 1

Here are some of the syntax differences between Python and JavaScript: Syntax for defining variables: In Python,…

Posted in DevOps/Sysadmin hacks Python

iLo server power on Python script for Telegram Bot

Having a Python Telegram bot with the function to power on servers through HP iLO can be…

Posted in Python

How to get the length of a cursor from mongodb using Python?

In MongoDB, cursors are returned by queries and allow you to iterate over the results of a…

Posted in DevOps/Sysadmin hacks Python

Automatic gracefully shutdown of virtual machines and ESXI hypervisor from telegram bot

Having a Telegram bot interface to control your network can be convenient for a few reasons: Remote…

Posted in Python

Checking the status of network devices with Python and sending messages to Telegram

I wanted to quickly get information about when the power goes out in my house. Having a…

Posted in Python

How to run Python bot as a service in Ubuntu Linux?

I like building Python bots. Especially for telegram – I think this messenger is very relevant and…

Posted in Python

How to be always online in Telegram? -Python/Telethon

Previously, I have already developed bots for Telegram with Aiogram. But those bots worked exactly like telegram…

Posted in Python

How to create telegram bot with Aiogram and Finite State Machine

I decided to understand Finite State Machine – because my bots had one function up to this…