Remove unused conditional
This commit is contained in:
@@ -473,9 +473,7 @@ func (b *Btelegram) handleUploadFile(msg *config.Message, chatid int64, parentID
|
|||||||
case ".ogg":
|
case ".ogg":
|
||||||
voc := tgbotapi.NewVoice(chatid, file)
|
voc := tgbotapi.NewVoice(chatid, file)
|
||||||
voc.Caption, voc.ParseMode = TGGetParseMode(b, msg.Username, fi.Comment)
|
voc.Caption, voc.ParseMode = TGGetParseMode(b, msg.Username, fi.Comment)
|
||||||
if parentID != 0 {
|
voc.ReplyToMessageID = parentID
|
||||||
voc.ReplyToMessageID = parentID
|
|
||||||
}
|
|
||||||
res, err := b.c.Send(voc)
|
res, err := b.c.Send(voc)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
|||||||
Reference in New Issue
Block a user