-
Notifications
You must be signed in to change notification settings - Fork 53
Run fully functional bot API
Merbot use bot API account to send its messages as formatted text.
Starting from v0.4, merbot has rewriten to enable fully function API bot, not just only to send formatted text messages. This is works by running bot API to relay messages into telegram-cli bot account. It's kind of slow, but better than nothing 😅
If you want to enable this feature, please follow these steps:
We're going to run bot API in another terminal. We can use terminal multiplexer such as tmux or screen for this purpose.
These follwing steps using tmux as example.
- install
tmux
sudo apt install tmux- open new
tmuxsession/windows
tmux- run
botapi.lua
lua botapi.lua
- exit/detach from
tmuxby pressingCtrl+Band thenD
hook.io is an open-source Hosting for Webhooks and Microservices. By using hook.io service we could get webhook feature and reduce load on our vps by not running another service.
Follow How to easily build a Telegram Bot with Hook.io tutorial, except for the source code part.
Use libs/hookio.js code instead:
- copy the content of
libs/hookio.js, and - paste into the hook source window.
Home
Installation:
Rank system
Frequently Asked Questions
Bugs
Plugins:
- 9gag.lua
- administration.lua
- apod.lua
- bing.lua
- calculator.lua
- cats.lua
- currency.lua
- dilbert.lua
- dogify.lua
- forecast.lua
- gmaps.lua
- gsmarena.lua
- hackernews.lua
- help.lua
- id.lua
- imdb.lua
- isup.lua
- kaskus.lua
- logger.lua
- pattern.lua
- plugins.lua
- quran.lua
- reddit.lua
- rss.lua
- salat.lua
- stats.lua
- sudo.lua
- time.lua
- translate.lua
- urbandictionary.lua
- webshot.lua
- whois.lua
- xkcd.lua
- yify.lua