Skip to content

SalamiArmy/TelegramSteamBotForGoogleAppEngine

Repository files navigation

#Telegram Steam Bot for Google App Engine This is a message bot for Telegram which is supposed to be hosted on Google App Engine for free. The bot will respond to /game in private or group chats. The bot searches the Steam store and responds with a concise formatted version of the Steam store page of the top result.

##Setup Google Apps Project

  1. Go to https://console.developers.google.com and create a new Google App Engine project. Then take that project id (it might be two random words and a number eg. gorilla-something-374635 but I think they changed that)
  2. Then ask the BotFather (on the day of his daughter's wedding) for a new bot ID
  3. Copy app.yaml.template and rename the copy to to app.yaml.
  4. Update {GOOGLE APP ENGINE PROJECT ID} in app.yaml.
  5. Copy keys.ini.template and rename the copy to keys.ini.
  6. Update {Your Telegram Bot ID here} in keys.ini

##Build Telegram Bot (Do this on the CI server)

git clone (url for your TelegramSteamBotForGoogleAppEngine fork) ~/bot
cd ~/bot
(PATH TO PYTHON27 INSTALL)\scripts\pip.exe install -t lib python-telegram-bot bs4
(PATH TO GOOGLE APP ENGINE LAUNCHER INSTALL)appcfg.py -A {GOOGLE APP ENGINE PROJECT ID} update .

Finally, go to https://project-id.appspot.com/set_webhook?url=https://project-id.appspot.com/webhook (replace both project-ids with the {GOOGLE APP ENGINE PROJECT ID}).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published