This is telegram bot for helping you find cafe store, thanks howtomakeaturn provide API.
First, You need have Telegram account!
-
Send
/newbot
command for @BotFather to create new Bot after you will get bot token. -
Setting your Bot Token and Google Maps API Token into
.env
, we have sample.env.example
for reference. -
Running
yarn install
for installation dependencies. -
After install, you can run
yarn start
for boot up Telegram Bot.
$ yarn install
$ yarn start
/start
- Start telegram bot./help
- List all command what you can use./list
- List all city./choose
- Click button choose a city./where cityName
- You will get random five cafe stores information in that city./location
- Getting your position and check your city whether in API list, based on your location use Google Maps API calculate close to you cafe store.
You can deploy Telegram Bot on 𝚫 now or Heroku platform, before deploy bot, you need setting environment variables on .env
.
$ yarn run lint
Use prettier for formatting our codes.
$ yarn run format
$ yarn test
- Telegram Bot 開發起手式
- Telegram Weather Bot (Nodejs)
- Telegram Weather Bot (Go)
- 使用 Promise.all() 解決多次的 API Callback
- 部署 Telegram Bot
MIT © Peng Jie