Skip to content

Instantly share code, notes, and snippets.

->(https://api.coingecko.com/api/v3/coins/tron)
var rates = JSON.parse(data.content);
var TRX = rates.market_data.current_price.usd
let cur= Bot.getProperty("cur")
let zero = Bot.getProperty("zero")
let ad=Bot.getProperty("admin01")
let msgid=User.getProperty("adminmsgid")
if(data.chat.chatid==ad){
if(data&&(1 > 0)){
return}else{throw new Error("database corrupted!")}
@bots-business
bots-business / GASync.js
Last active May 1, 2022 14:39
Use this code to connect Bots.Business BJS with Google App Script
// Bots.Business 2020
// Use this code to connect Bots.Business BJS with Google App Script
// BJS data;
var message, chat, bot, params, options, statistics, admins, owner, iteration_quota,
payment_plan, completed_commands_count, request, content, http_status, cookies, http_headers, user;
function debug(){ run() }
var sheet;
//this is a function that fires when the webapp receives a GET request
function doGet(e) {
var prms = e.parameter;
var result = {};
result.headers = tableHeaders(prms.sheetName);
if(prms.rowIndex){
result.row = getRow(prms.rowIndex);
#!/usr/bin/env ruby
def stop_incorrect_containers
lines = `docker ps -a`
is_first_line = true
for_stop = ''
lines.each_line do |line|
if is_first_line

Integration with Segment.com

1. Create account in Segment.com and login: https://app.segment.com/login

2. Go to yours workspace

3. Click on "Sources"

@bots-business
bots-business / How to create Telegram bot.md
Last active August 30, 2023 18:12
Bots.business: how to create Telegram bot

Demo bot

See Demo bot in action https://telegram.me/DemoFromTableBot

FAQ

1. How to create answer on bot starting?

Use command /start. It is always run on bot start.

2. What it is "bot command"?

Command - it is text from user.