Skip to content

Introduction

VYCKTOR HUGO STARK edited this page Jun 4, 2018 · 1 revision

Introduction

Well, I'll have to explain schematically how my base works, so it will be more practical to understand.

Starting from the beginning - How the Base Works?

Basically, the user will send msg, and this message will go to the Telegram-BOT-api and then go to the handler that will analyze the data from the webhook to know what type of request was requested, after analyzing the data, they will be send to on_msg_receive function that it will route them to another verification system that will check if there is a corresponding function if have it! enter it, go to methods.py and return to the user if it is not and is false and it will respond to webhook a status that is 200 to terminate the request and will terminate. see the diagram below

How does the data handler for webhook work?

well, this system will receive a request via webhook and will verify the data of the message, edited_message, callback_query, and will forward what understand to the base that will respond to the user through its plugins. see the diagram below

How is this data analysis of msg??

This system was created to maintain the bot, when active it responds only sudo, it will also check if the plugin exists in the list of plugins. see the diagram below