nguLikScript

callBack.gs

Apr 4th, 2022
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // -- inline keyboard
  2. bot.action('keyboard', (ctx) => {
  3. ctx.deleteMessage();
  4. sendMenu(ctx);})
  5.  
  6. // -- Kirim foto
  7. bot.action('kirim_foto', (ctx) => {
  8. ctx.deleteMessage();
  9. let photoID = 'AgACAgEAAxkBAAIHwmJJTfk1244LZtj6WgH4YSQxA5ttAAL9qTEbOzVRRqgbCKkoVHBFAQADAgADeAADIwQ'
  10. let keyb = [[button.url('🔗 Api sendPhoto', 'https://core.telegram.org/bots/api#sendphoto')]]
  11. ctx.replyWithPhoto(photoID, {caption: '<b>Tes</b> <i>Photo</i>', parse_mode: 'html', reply_markup: markup.inlineKeyboard(keyb)});
  12. Utilities.sleep(123)
  13. sendMenuInline(ctx);})
  14.    
  15. // -- Kirim video
  16. bot.action('kirim_video', (ctx) => {
  17. ctx.deleteMessage();
  18. var videoID = "BAACAgUAAxkBAAID7WAZYP1qXvIr1lqTvqOAQedmt4dPAAJlAAMZFEFVJwtvxKKt59geBA";
  19. var keyb = [[button.url('🔗 Api sendVideo', 'https://core.telegram.org/bots/api#sendvideo')]]
  20. ctx.replyWithVideo(videoID, {caption: '<b>File</b>_<i>id</i> :\n<code>'+videoID+'</code>', parse_mode: 'html', reply_markup: markup.inlineKeyboard(keyb)});
  21. Utilities.sleep(123)
  22. sendMenuInline(ctx);})
  23.  
  24. // -- Kirim sticker
  25. bot.action('kirim_sticker', (ctx) => {
  26. ctx.deleteMessage();
  27. var stickerID = "CAACAgIAAxkBAAID6WAZYJ6Bun4IdXA0e3qHrYiqH3OGAAL5BgACRvusBAXmf7zy8Nr1HgQ"
  28. var keyb = [[button.url('🔗 Api sendSticker', 'https://core.telegram.org/bots/api#sendsticker')]]
  29. ctx.replyWithSticker(stickerID, { reply_markup: markup.inlineKeyboard(keyb)});
  30. ctx.replyWithHTML('<b>File</b>_<i>id</i> :\n<code>'+stickerID+'</code>');
  31. Utilities.sleep(123)
  32. sendMenuInline(ctx);})
  33.  
  34. // -- Kirim gif
  35. bot.action('kirim_gif', (ctx) => {
  36. ctx.deleteMessage();
  37. let animID = 'CgACAgUAAxkBAAII5mJJwY3XQdPxUSbBSh5oOpORVPqnAAIIAAPf4ZBWaBYo9wc19H8jBA'
  38. let keyb = [[button.url('🔗 Api sendAnimation', 'https://core.telegram.org/bots/api#sendanimation')]]
  39. ctx.replyWithAnimation(animID, {caption: '<b>File</b>_<i>id</i> :\n<code>'+animID+'</code>', parse_mode: 'html', reply_markup: markup.inlineKeyboard(keyb)});
  40. Utilities.sleep(123)
  41. sendMenuInline(ctx);})
  42.  
  43. // -- Kirim audio
  44. bot.action('kirim_audio', (ctx) => {
  45. ctx.deleteMessage();
  46. let audID = 'CQACAgUAAxkBAAII-WJJw2IOlK-C8DijVMJtxK5jd5UKAAIGAAPtGohVOaiKIqF68PQjBA'
  47. let keyb = [[button.url('🔗 Api sendAudio', 'https://core.telegram.org/bots/api#sendaudio')]]
  48. ctx.replyWithAudio(audID, {caption: '<b>File</b>_<i>id</i> :\n<code>'+audID+'</code>', parse_mode: 'html', reply_markup: markup.inlineKeyboard(keyb)});
  49. Utilities.sleep(123)
  50. sendMenuInline(ctx);})
  51.  
  52. // -- Kirim voice
  53. bot.action('kirim_voice', (ctx) => {
  54. ctx.deleteMessage();
  55. let voiceID = 'AwACAgUAAxkBAAIJBWJJxOj_nj1ZMPS1oEvv2Hl2ciGjAAIWAAPIflhU2wEtgZsjHi8jBA'
  56. let keyb = [[button.url('🔗 Api sendVoice', 'https://core.telegram.org/bots/api#sendvoice')]]
  57. ctx.replyWithVoice(voiceID, {caption: '<b>File</b>_<i>id</i> :\n<code>'+voiceID+'</code>', parse_mode: 'html', reply_markup: markup.inlineKeyboard(keyb)});
  58. Utilities.sleep(123)
  59. sendMenuInline(ctx);})
  60.  
  61. // -- Kirim dice
  62. bot.action('kirim_dice', (ctx) => {
  63. ctx.deleteMessage();
  64. let emoji = helper.random(['🎲', '🎯', '🎳', '🎰', '🏀', '⚽️'])
  65. let keyb = [[button.url('🔗 Api sendDice', 'https://core.telegram.org/bots/api#senddice')]]
  66. bot.tg.callApi('sendDice', {
  67.   chat_id: ctx.chat.id,
  68.   emoji: emoji,
  69.   reply_markup: markup.inlineKeyboard(keyb)});
  70. Utilities.sleep(123)
  71. sendMenuInline(ctx);})
  72.  
  73. // -- Kirim document
  74. bot.action('kirim_document', (ctx) => {
  75. ctx.deleteMessage();
  76. let docID = 'BQACAgUAAxkBAAIJZmJJzkOwdRjhSZtwbAr0qishfvxXAAKOAQACrdfRVCDbIn3qAbBRIwQ'
  77. let keyb = [[button.url('🔗 Api sendDocument', 'https://core.telegram.org/bots/api#senddocument')]]
  78. ctx.replyWithDocument(docID, {caption: '<b>File</b>_<i>id</i> :\n<code>'+docID+'</code>', parse_mode: 'html', reply_markup: markup.inlineKeyboard(keyb)});
  79. Utilities.sleep(123)
  80. sendMenuInline(ctx);})
  81.  
  82. bot.action('yourID', (ctx) => {
  83. ctx.replyWithHTML('🆔 <code>'+ctx.from.id+'</code>')})
  84.  
Advertisement
Add Comment
Please, Sign In to add comment