0% found this document useful (0 votes)
175 views5 pages

Bot Table Template PDF

This document provides examples of different commands and formatting options for a messaging bot. It lists commands for starting conversations (/start), getting help (/help), formatting text (/format), inserting links (/link), images (/image), and inline code (/inline). It also includes examples for using keyboard buttons (/keyboard), viewing last update times (/lastupdate), using emojis (/emoji), and examples of using Bot Java Script logic.

Uploaded by

shaif
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
175 views5 pages

Bot Table Template PDF

This document provides examples of different commands and formatting options for a messaging bot. It lists commands for starting conversations (/start), getting help (/help), formatting text (/format), inserting links (/link), images (/image), and inline code (/inline). It also includes examples for using keyboard buttons (/keyboard), viewing last update times (/lastupdate), using emojis (/emoji), and examples of using Bot Java Script logic.

Uploaded by

shaif
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

You can

use any
command help aliases answer keyboard scenarios need_reply group others
columns
too
text, link,
image, 💬 emoji, inline,
/start BACK Start always run in first. You can see /help ⚙ BJS: Bot Java Script
This hint displayed
/example on /help ex, exa This is bot's answer for example command
How i can format You can use /text formating, insert /link, /image or
/format answer? use /inline text
You can use *bold*, _italic_ text. \n Use "n" for
/text text new line.
You can use [TEXT](URL) for links. *Example*:
\n
/link link [Google](http://google.com)
/image image [Example pic](https://i.imgur.com/dUiW3Vd.png)
Use inline blocks:
`inline fixed-width code`
```text
pre-formatted fixed-width code block
/inline inline ```
How i can use Just use command or commands aliases in
/keyboard keyboard? column "keyboard". Use "n" for new line
Last upload *Last updated at:* 03:57 29.07.2020\n\n You can
/lastupdate commands time use formulas in answer!

/emoji 💬 emoji 😂🐛🚀


calculate 2+2, 🖼 send Photo,
👀 send Sticker, 📱 Contact, Audio, 📹 Video,
Some BJS 🗺 Location, 🗺 Send Location,
/bjs examples ⚙ BJS: Bot Java Script You can add logic with BJS 👤 Get user profile photos, BACK
calculate 2+2 Bot.sendMessage(2+2)
Api.sendPhoto({ photo: "https://image.freepik.com/free-
🖼 send Photo photo/cute-cat-picture_1122-449.jpg"})
Api.sendAudio({audio: "https://www.bensound.
Audio org/bensound-music/bensound-funnysong.mp3"});
Api.sendVideo({video:"https://sample-videos.
com/video123/mp4/720/big_buck_bunny_720p_1mb.
📹 Video mp4" })
Api.sendLocation({latitude:48.831504, longitude:
🗺 Location 2.322804})
// you can inspect all data
// Bot.inspect(request);

let location = request.location


if(!location){ Bot.sendMessage("Please send location");
return }

Bot.sendMessage("Your location is:\n longitude " +


🗺 Send Location Please share your location via 📎 location.longitude + "\n latitude: " + location.latitude ) TRUE
Api.sendContact({ phone_number: "+18554154545",
📱 Contact first_name:"Bill", last_name: "Gates" })
Api.sendSticker({ sticker:"https://www.gstatic.
👀 send Sticker com/webp/gallery/1.webp" });
Api.getUserProfilePhotos({user_id: user.telegramid,
👤 Get user profile photos on_result: "onGetProfilePhotos"});
// you can inspect result:
// Bot.inspect(options)

if(!options.ok){
return Bot.sendMessage("Error!");
}

if(options.result.total_count==0){
return Bot.sendMessage("You have no photos in
profile")
}

let photos = options.result.photos;


for(let i in photos){
Api.sendPhoto( { photo: photos[i][0].file_id } );
}
onGetProfilePhotos

You might also like