Skip to content

Commit

Permalink
Revert "chat: return username in Recipient for channels"
Browse files Browse the repository at this point in the history
This reverts commit 41c9579.
  • Loading branch information
demget committed Oct 15, 2021
1 parent 568f6ea commit 13d54ae
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ type ChatPhoto struct {

// Recipient returns chat ID (see Recipient interface).
func (c *Chat) Recipient() string {
if c.Type == ChatChannel && c.Username != "" {
return c.Username
}
return strconv.FormatInt(c.ID, 10)
}

Expand Down

0 comments on commit 13d54ae

Please sign in to comment.