Tag: Python

  • Extract and Visualize Your Telegram Group Network

    Extract and Visualize Your Telegram Group Network

    This was one of the ideas I wanted to implement for a while: to visualize the members of all groups I joined on Telegram, and see how many circles I had on the single platform. Thanks to the openness of Telegram’s client API, this was rather easy to achieve.

  • How to Write Integration Tests for a Telegram Bot

    How to Write Integration Tests for a Telegram Bot

    This is my 6th article on Telegram, the IM platform of my preference. In this article I’m going to introduce about how I wrote the integration tests for my EFB Telegram Master channel — a Telegram interface for EFB, using a userbot-like strategy. To get started, you need to have a bot ready to be […]

  • Translate README files in reStructuredText with Sphinx

    reStructuredText (reST) is a markup language that is popular in the Python developers community. reST is the standard markup language for docutils, Sphinx documentation generator, and the Python Package Index (PyPI). However, reST by now is still not popular enough. Most translation platforms, including Crowdin which I’m using now for EH Forwarder Bot, have no […]

  • Splitting a Large Class and Multiple Inheritance in Python

    When I started refactoring EFB Telegram Master Channel (ETM) for 2.0 updates, I was investigating ways to organize code into different files in a decent manner. In this article I’d like to talk about the strategy I used, comparing to another codebase I was reading back then, itchat.

  • RWG: an Experiment on Semi-Automated AI (?) Agent for Genkai Shiritori Mobile

    Few days ago, a new game, Genkai Shiritori Mobile (GSM), was released by Baton Co., Ltd. and a web media and YouTubers team QuizKnock. Shiritori is a traditional Japanese word game where each player says a new word that starts with the last letter (or rather kana) of the previous word. Genkai Shiritori is a […]