✨ Added NewMessageForward helper
This commit is contained in:
parent
2336ee755e
commit
aa4f78f2e6
|
@ -25,6 +25,10 @@ func NewMessage(chatID int64, text string) *SendMessageParameters {
|
|||
return &SendMessageParameters{ChatID: chatID, Text: text}
|
||||
}
|
||||
|
||||
func NewMessageForward(from, to int64, messageID int) *ForwardMessageParameters {
|
||||
return &ForwardMessageParameters{FromChatID: from, ChatID: to, MessageID: messageID}
|
||||
}
|
||||
|
||||
func NewInvoice(chatID int64, title, description, payload, providerToken, startParameter, currency string, prices ...LabeledPrice) *SendInvoiceParameters {
|
||||
return &SendInvoiceParameters{
|
||||
ChatID: chatID,
|
||||
|
|
Loading…
Reference in New Issue
Block a user