Skip to content

Commit

Permalink
Merge pull request #10 from ahdark-services/feat/self-bot-server
Browse files Browse the repository at this point in the history
  • Loading branch information
AH-dark authored Apr 2, 2024
2 parents 15e2328 + d73468e commit 07d5192
Show file tree
Hide file tree
Showing 12 changed files with 277 additions and 35 deletions.
227 changes: 201 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions common/telegram_bot/bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func NewBot(ctx context.Context, vip *viper.Viper) (*telego.Bot, error) {
vip.GetString("telegram_bot.token"),
telego.WithLogger(otelzap.L().Sugar().Named("telegram_bot")),
telego.WithHealthCheck(),
telego.WithAPIServer(vip.GetString("telegram_bot.api_url")),
)
if err != nil {
span.RecordError(err)
Expand Down
1 change: 1 addition & 0 deletions config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ debug: false

telegram_bot:
token: ""
api_url: "https://api.telegram.org"
webhook:
url: ""
max_connections: 100
Expand Down
Loading

0 comments on commit 07d5192

Please sign in to comment.