ka66ann / azka-userbot-telegram

Home Page:https://bright-tech.netlify.app/post/azka-userbot-telegram

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Azka Userbot Telegram

Azka UserBot Telegram terbuat library tdlib, bot ini lebih cepat dari pada bot api support download / upload file, bot ini khusus untuk pembelajaran saja jika ada kekurangan tambah sendiri ya! dan tolong gunakan dengan bijak!.

Demo

demo.mp4

Feature

  • Support User and Bot
  • Login in Bot
  • Multiple Client

Example Create Plugin

  • For Update message text
var plugins = {
    "name": "ping",
    "is_active": true,
    "script": async function (tg, update, is_userbot) {
        if (typeof update["message"] == "object") {
            if (typeof update["message"]["text"] == "string") {
                if (RegExp("^/ping$", "i").exec(update["message"]["text"])) {
                    if (is_userbot) {
                        if (update["message"]["is_outgoing"]) {
                            return await tg.request("editMessageText", {
                                "chat_id": msg["chat"]["id"],
                                "message_id": msg["message_id"],
                                "text": "Pong"
                            });
                        }
                    }
                    return await tg.request("sendMessage", {
                        "chat_id": msg["chat"]["id"],
                        "text": "Pong"
                    });
                }
            }
        }
    }
};
module.exports = {
    plugins
};
.
├── assets
├── client
│   ├── bot
│   │   ├── animations
│   │   ├── documents
│   │   ├── music
│   │   ├── passport
│   │   ├── photos
│   │   ├── profile_photos
│   │   ├── secret
│   │   ├── secret_thumbnails
│   │   ├── stickers
│   │   ├── temp
│   │   ├── thumbnails
│   │   ├── video_notes
│   │   ├── videos
│   │   ├── voice
│   │   └── wallpapers
│   └── userbot
│       ├── animations
│       ├── documents
│       ├── music
│       ├── passport
│       ├── photos
│       ├── profile_photos
│       ├── secret
│       ├── secret_thumbnails
│       ├── stickers
│       ├── temp
│       ├── thumbnails
│       ├── video_notes
│       ├── videos
│       ├── voice
│       └── wallpapers
├── db
├── docs
├── plugin
└── util

70 directories

About

https://bright-tech.netlify.app/post/azka-userbot-telegram


Languages

Language:JavaScript 100.0%