azka_userbot_telegram
azka_userbot_telegram copied to clipboard
AZKADEV Userbot TELEGRAM Simple Hanya untuk sumber belajar!
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
https://user-images.githubusercontent.com/82513502/151647134-68f0a599-3da1-4fa0-8975-b82b01c6d661.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