Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions Dockerfile

This file was deleted.

661 changes: 0 additions & 661 deletions LICENSE

This file was deleted.

2 changes: 0 additions & 2 deletions Procfile

This file was deleted.

85 changes: 84 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,84 @@
## File Stream Bot With Shortner & Multiple Player Support
# file to link - chat bot
It is repository for chat bot: [@file to link](https://t.me/file to link)

## What it is?
This repository can be imported to [Bots.Business](https://bots.business) as a worked chat bot.

[Bots.Business](https://bots.business) - it is probably the first CBPaaS - Chat Bot Platform as a Service.

A CBPaaS is a cloud-based platform that enables developers to create chatbots without needing to build backend infrastructure.

## Create your own bot for Telegram from this Git repo

How to create bot?
1. Create bot with [@BotFather](https://telegram.me/BotFather) and take Secret Token
2. Create bot in App and add Secret Token
3. Add Public Key from App as [Deploy key](https://developer.github.com/v3/guides/managing-deploy-keys/#deploy-keys) with read access (and write access for bot exporting if you need it)
4. Do import for this git repo

Now you can talk with yours new Telegram Bot

See [more](https://help.bots.business/getting-started)

## Commands - in commands folder
File name - it is command name (Bot it can be rewritten in command description)

Command can have: `name`, `help`, `aliases` (second names), `answer`, `keyboard`, `scnarios` (for simple logic) and other options.

### Command description
It is file header:

/*CMD
command: /test
help: this is help for ccommand
need_reply: [ true or false here ]
auto_retry_time: [ time in sec ]
answer: it is example answer for /test command
keyboard: button1, button2
aliases: /test2, /test3
CMD*/

See [more](https://help.bots.business/commands)

### Command body
It is command code in JavaScript.
Use Bot Java Script for logic in command.

For example:
> Bot.sendMessage(2+2);

See [more](https://help.bots.business/scenarios-and-bjs)


## Libraries - in libs folder
You can store common code in the libs folder. File name - it is library name.

For example code in myLib.js:

function hello(){ Bot.sendMessage("Hello from lib!") }
function goodbye(name){ Bot.sendMessage("Goodbye, " + name) }

publish({
sayHello: hello,
sayGoodbyeTo: goodbye
})

then you can run in any bot's command:

Libs.myLib.hello()
Libs.myLib.sayGoodbyeTo("Alice")

See [more](https://help.bots.business/git/library)

## Other bots example
See other bots examples in the [github](https://github.com/bots-business?utf8=✓&tab=repositories&q=&type=public&language=javascript) or in the [Bot Store](https://bots.business/)


## Other help
[Help.bots.business](https://help.bots.business)

## API
See [API](https://api.bots.business/docs#/docs/summary)


![](https://bots.business/images/web-logo.png)
23 changes: 0 additions & 23 deletions Script.py

This file was deleted.

1 change: 0 additions & 1 deletion TechVJ/TechVJ

This file was deleted.

4 changes: 0 additions & 4 deletions TechVJ/__init__.py

This file was deleted.

1 change: 0 additions & 1 deletion TechVJ/bot/TechVJ

This file was deleted.

86 changes: 0 additions & 86 deletions TechVJ/bot/__init__.py

This file was deleted.

47 changes: 0 additions & 47 deletions TechVJ/bot/clients.py

This file was deleted.

1 change: 0 additions & 1 deletion TechVJ/server/TechVJ

This file was deleted.

5 changes: 0 additions & 5 deletions TechVJ/server/exceptions.py

This file was deleted.

1 change: 0 additions & 1 deletion TechVJ/template/TechVJ

This file was deleted.

Loading