21 lines
829 B
Markdown
Executable File
21 lines
829 B
Markdown
Executable File
# Tangmo FxTwitter Bot
|
|
|
|
Telegram bot that monitor for a message containing a Twitter post link and reply with [FxTwitter](https://github.com/FixTweet/FixTweet) link
|
|
|
|
1. Register Telegram bot
|
|
1. We are using WebHooks model. Point HTTPS web server to `public_html/hook.php`
|
|
1. Copy `env.sample.php` to `env.php` and enter credentials
|
|
1. `composer install`
|
|
1. `php set_web_hook.php`
|
|
1. It should work now
|
|
|
|
## Design consideration
|
|
|
|
### Zero Database
|
|
As system maintainer, that is 1 less things to worry about.
|
|
|
|
As a user, the usage data remain private as nothing is logged.
|
|
|
|
Potential features that require Database includes
|
|
- Bot usage analysis: just don't. Respect user's privacy.
|
|
- Buttons: Each button can cotain upto 64 bytes in `callback_data`, hopefully this will be enough to store all context required for the functionality. |