Skip to content

Commit

Permalink
fix: deepsource errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Divkix committed Jul 28, 2024
1 parent 39d3502 commit ab0fb3a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions alita/utils/helpers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ var NotesEnumFuncMap = map[int]func(b *gotgbot.Bot, ctx *ext.Context, noteData *
&gotgbot.SendMessageOpts{
ParseMode: formatMode,
LinkPreviewOptions: &gotgbot.LinkPreviewOptions{
IsDisabled: true,
IsDisabled: !webPreview,
},
ReplyMarkup: keyb,
ReplyParameters: &gotgbot.ReplyParameters{
Expand All @@ -869,7 +869,7 @@ var NotesEnumFuncMap = map[int]func(b *gotgbot.Bot, ctx *ext.Context, noteData *
},
)
},
db.STICKER: func(b *gotgbot.Bot, ctx *ext.Context, noteData *db.ChatNotes, keyb *gotgbot.InlineKeyboardMarkup, replyMsgId int64, _, isProtected bool, noFormat, noNotif bool) (*gotgbot.Message, error) {
db.STICKER: func(b *gotgbot.Bot, ctx *ext.Context, noteData *db.ChatNotes, keyb *gotgbot.InlineKeyboardMarkup, replyMsgId int64, _, isProtected bool, _, noNotif bool) (*gotgbot.Message, error) {
return b.SendSticker(ctx.Update.Message.Chat.Id,
gotgbot.InputFileByID(noteData.FileID),
&gotgbot.SendStickerOpts{
Expand Down Expand Up @@ -989,7 +989,7 @@ var NotesEnumFuncMap = map[int]func(b *gotgbot.Bot, ctx *ext.Context, noteData *
},
)
},
db.VideoNote: func(b *gotgbot.Bot, ctx *ext.Context, noteData *db.ChatNotes, keyb *gotgbot.InlineKeyboardMarkup, replyMsgId int64, _, isProtected bool, noFormat, noNotif bool) (*gotgbot.Message, error) {
db.VideoNote: func(b *gotgbot.Bot, ctx *ext.Context, noteData *db.ChatNotes, keyb *gotgbot.InlineKeyboardMarkup, replyMsgId int64, _, isProtected bool, _, noNotif bool) (*gotgbot.Message, error) {
return b.SendVideoNote(ctx.Update.Message.Chat.Id,
gotgbot.InputFileByID(noteData.FileID),
&gotgbot.SendVideoNoteOpts{
Expand Down Expand Up @@ -1093,7 +1093,7 @@ var GreetingsEnumFuncMap = map[int]func(b *gotgbot.Bot, ctx *ext.Context, msg, f
},
)
},
db.VideoNote: func(b *gotgbot.Bot, ctx *ext.Context, msg, fileID string, keyb *gotgbot.InlineKeyboardMarkup) (*gotgbot.Message, error) {
db.VideoNote: func(b *gotgbot.Bot, ctx *ext.Context, _, fileID string, keyb *gotgbot.InlineKeyboardMarkup) (*gotgbot.Message, error) {
return b.SendVideoNote(
ctx.EffectiveChat.Id,
gotgbot.InputFileByID(fileID),
Expand Down Expand Up @@ -1130,7 +1130,7 @@ var FiltersEnumFuncMap = map[int]func(b *gotgbot.Bot, ctx *ext.Context, filterDa
},
)
},
db.STICKER: func(b *gotgbot.Bot, ctx *ext.Context, filterData db.ChatFilters, keyb *gotgbot.InlineKeyboardMarkup, replyMsgId int64, noFormat, noNotif bool) (*gotgbot.Message, error) {
db.STICKER: func(b *gotgbot.Bot, ctx *ext.Context, filterData db.ChatFilters, keyb *gotgbot.InlineKeyboardMarkup, replyMsgId int64, _, noNotif bool) (*gotgbot.Message, error) {
return b.SendSticker(
ctx.Update.Message.Chat.Id,
gotgbot.InputFileByID(filterData.FileID),
Expand Down Expand Up @@ -1244,7 +1244,7 @@ var FiltersEnumFuncMap = map[int]func(b *gotgbot.Bot, ctx *ext.Context, filterDa
},
)
},
db.VideoNote: func(b *gotgbot.Bot, ctx *ext.Context, filterData db.ChatFilters, keyb *gotgbot.InlineKeyboardMarkup, replyMsgId int64, noFormat, noNotif bool) (*gotgbot.Message, error) {
db.VideoNote: func(b *gotgbot.Bot, ctx *ext.Context, filterData db.ChatFilters, keyb *gotgbot.InlineKeyboardMarkup, replyMsgId int64, _, noNotif bool) (*gotgbot.Message, error) {
return b.SendVideoNote(
ctx.Update.Message.Chat.Id,
gotgbot.InputFileByID(filterData.FileID),
Expand Down

0 comments on commit ab0fb3a

Please sign in to comment.