Fix help tests
This commit is contained in:
parent
b2addf5f91
commit
97ba9e12bf
1 changed files with 1 additions and 2 deletions
|
@ -148,10 +148,9 @@ func TestNewEditMessageText(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestNewEditMessageCaption(t *testing.T) {
|
||||
edit := tgbotapi.NewEditMessageCaption(ChatID, ReplyToMessageID, "new caption", tgbotapi.ModeHTML)
|
||||
edit := tgbotapi.NewEditMessageCaption(ChatID, ReplyToMessageID, "new caption")
|
||||
|
||||
if edit.Caption != "new caption" ||
|
||||
edit.ParseMode != tgbotapi.ModeHTML ||
|
||||
edit.BaseEdit.ChatID != ChatID ||
|
||||
edit.BaseEdit.MessageID != ReplyToMessageID {
|
||||
t.Fail()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue