Skip to content

Commit

Permalink
Fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sas1024 committed Mar 25, 2022
1 parent 8cc78c1 commit 9d0d33f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bridge/telegram/telegram.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ func (b *Btelegram) getFileDirectURL(id string) string {
return res
}

func (b *Btelegram) sendMessage(chatid int64, username, text, parentId string) (string, error) {
func (b *Btelegram) sendMessage(chatid int64, username, text, parentID string) (string, error) {
m := tgbotapi.NewMessage(chatid, "")
m.Text, m.ParseMode = TGGetParseMode(b, username, text)
if parentId != "" {
rmid, err := strconv.Atoi(parentId)
if parentID != "" {
rmid, err := strconv.Atoi(parentID)
if err != nil {
return "", err
}
Expand Down

0 comments on commit 9d0d33f

Please sign in to comment.