Skip to content

Commit

Permalink
fix(api): use channel id
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Apr 18, 2024
1 parent 67ab816 commit 90cdcf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/badge.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (s Server) GetTelegramBadge(ctx context.Context, params oas.GetTelegramBadg
if err != nil {
return nil, errors.Wrap(err, "resolve domain")
}
fullChat, err := s.tg.API().MessagesGetFullChat(ctx, peer.(*tg.InputPeerChat).ChatID)
fullChat, err := s.tg.API().MessagesGetFullChat(ctx, peer.(*tg.InputPeerChannel).ChannelID)
if err != nil {
return nil, errors.Wrap(err, "get chat")
}
Expand Down

0 comments on commit 90cdcf7

Please sign in to comment.