Code Monkey home page Code Monkey logo

telegram-bot-typescript's Introduction

pfforum bot

WEB_SERVICE_URL

FIXIT: отправляем id 390895078 принимаем comments от него

{
    "comments": [
        {
            "id_task": 42,
            "user_id": 390895078,
            "date": "2023-08-02",
            "name": "Тест 1: Оптимизация процесса выплавки стали",
            "description": "Какие изменения в процессе выплавки могут улучшить качество стали без значительного увеличения затрат?"
        }
    ]
}

/rank_up.php и /rank_up2.php

  • id_user: userId
  • fio: encodedFio

/get_user_id.php

FIXIT: на проверку на true и показать его ФИО (для лога)

{
    "user_ids": [
        344800068, 372756606, 390895078, 407683031, 409541442, 476175118,
        487054792, 587379201, 628069211, 700831100, 755420969, 916611738,
        1107003647, 1164924330, 1188016536, 1273125651, 1317131152, 1401573636,
        1793690841, 1855007335, 2063026920, 2088248160, 5193574970, 5195514455,
        5207181631, 5220456657, 5243881866, 5251680866, 5804836711, 5860662134,
        6038160691, 6230752380, 6234662820
    ]
}

/update_comment.php

  • id_task: userState.taskId,
  • comment: userComment,

1. уведомления всех пользователей

async function notifyAllUsers() {}

2. выполнения GET-запросов

async function fetchData(url, params) {}

3. Проверка комминтариев

async function fetchComments() {}

4. уведомления пользователей о комментариях

async function notifyUsers(ctx, userInitiated) {}

5. проверки регистрации пользователя на Сервере

async function checkRegistration(chatId) {}

6. Создание метрик

function createMetric(name, counterObject, key) {}

7. обработка команды /reg

async function handleRegComment(ctx) {}

8. отправки сообщения в лог

async function sendToLog(ctx) {}

9. бработка текстовых команд ФИО /add_user

async function handleTextCommand(ctx) {}

telegram-bot-typescript's People

Contributors

i5anin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.