Revert "chat: return username in Recipient for channels"

This reverts commit 41c95795c0.
pull/449/head^2
Demian 3 years ago
parent 568f6ea299
commit 13d54ae733

@ -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)
}

Loading…
Cancel
Save