Skip to content

Commit

Permalink
feat: Added schedule_date field
Browse files Browse the repository at this point in the history
  • Loading branch information
ostiwe committed Dec 24, 2023
1 parent 4126fa6 commit 8a4d833
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions configs.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ type BaseChat struct {
ReplyMarkup interface{}
DisableNotification bool
AllowSendingWithoutReply bool
ScheduleDate int64
}

func (chat *BaseChat) params() (Params, error) {
Expand All @@ -281,6 +282,7 @@ func (chat *BaseChat) params() (Params, error) {
params.AddBool("disable_notification", chat.DisableNotification)
params.AddBool("allow_sending_without_reply", chat.AllowSendingWithoutReply)
params.AddBool("protect_content", chat.ProtectContent)
params.AddNonZero64("schedule_date", chat.ScheduleDate)

err := params.AddInterface("reply_markup", chat.ReplyMarkup)

Expand Down

0 comments on commit 8a4d833

Please sign in to comment.