Files
tangmo_fxtwitter_bot/README.md
2023-06-28 18:17:10 +00:00

829 B
Executable File

Tangmo FxTwitter Bot

Telegram bot that monitor for a message containing a Twitter post link and reply with FxTwitter link

  1. Register Telegram bot
  2. We are using WebHooks model. Point HTTPS web server to public_html/hook.php
  3. Copy env.sample.php to env.php and enter credentials
  4. composer install
  5. php set_web_hook.php
  6. 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.