Skip to content

Commit

Permalink
Merge pull request #1928 from tactilenews/favor_telegram_webhook_meth…
Browse files Browse the repository at this point in the history
…od_in_development

Favor telegram webhook method in development
  • Loading branch information
roschaefer authored Jul 15, 2024
2 parents c2408a5 + 2ffa4a0 commit f9a3342
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@ We're using [our own fork](https://github.com/tactilenews/threema) of the `three
bundle config local.threema .
```

#### Telegram

To test out Telegram webhooks, you need to first set the webhook. You can do this like so:

```rb
Telegram.bots_config
{ <key>: <Telegram::Bot::Client> }
bot = Telegram.bots[<key_of_bot>]
bot.set_webhook(url: 'https://<localtunnel>/telegram/<route-to-telegram-bot>')
```
See this [blog post](https://rossta.net/blog/how-to-specify-local-ruby-gems-in-your-gemfile.html) for more information.
### Testing
Expand Down
4 changes: 0 additions & 4 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ x-dev-defaults: &x-dev-defaults
- .:/app

services:
telegram:
<<: *x-dev-defaults
command: rake telegram:bot:poller

app:
<<: *x-dev-defaults
depends_on: [ db, mailserver, assets ]
Expand Down

0 comments on commit f9a3342

Please sign in to comment.