|
|
|
@ -411,15 +411,15 @@ func (b *Bot) Forward(to Recipient, msg Editable, opts ...interface{}) (*Message
|
|
|
|
|
return extractMessage(data)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ForwardMessages method forwards multiple messages of any kind.
|
|
|
|
|
// ForwardMany method forwards multiple messages of any kind.
|
|
|
|
|
// If some of the specified messages can't be found or forwarded, they are skipped.
|
|
|
|
|
// Service messages and messages with protected content can't be forwarded.
|
|
|
|
|
// Album grouping is kept for forwarded messages.
|
|
|
|
|
func (b *Bot) ForwardMessages(to Recipient, msgs []Editable, opts ...*SendOptions) ([]Message, error) {
|
|
|
|
|
func (b *Bot) ForwardMany(to Recipient, msgs []Editable, opts ...*SendOptions) ([]Message, error) {
|
|
|
|
|
if to == nil {
|
|
|
|
|
return nil, ErrBadRecipient
|
|
|
|
|
}
|
|
|
|
|
return b.forwardCopyMessages(to, msgs, "forwardMessages", opts...)
|
|
|
|
|
return b.forwardCopyMany(to, msgs, "forwardMessages", opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Copy behaves just like Forward() but the copied message doesn't have a link to the original message (see Bots API).
|
|
|
|
@ -448,18 +448,18 @@ func (b *Bot) Copy(to Recipient, msg Editable, options ...interface{}) (*Message
|
|
|
|
|
return extractMessage(data)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// CopyMessages this method makes a copy of messages of any kind.
|
|
|
|
|
// CopyMany this method makes a copy of messages of any kind.
|
|
|
|
|
// If some of the specified messages can't be found or copied, they are skipped.
|
|
|
|
|
// Service messages, giveaway messages, giveaway winners messages, and
|
|
|
|
|
// invoice messages can't be copied. A quiz poll can be copied only if the value of the field
|
|
|
|
|
// correct_option_id is known to the bot. The method is analogous
|
|
|
|
|
// to the method forwardMessages, but the copied messages don't have a link to the original message.
|
|
|
|
|
// Album grouping is kept for copied messages.
|
|
|
|
|
func (b *Bot) CopyMessages(to Recipient, msgs []Editable, opts ...*SendOptions) ([]Message, error) {
|
|
|
|
|
func (b *Bot) CopyMany(to Recipient, msgs []Editable, opts ...*SendOptions) ([]Message, error) {
|
|
|
|
|
if to == nil {
|
|
|
|
|
return nil, ErrBadRecipient
|
|
|
|
|
}
|
|
|
|
|
return b.forwardCopyMessages(to, msgs, "copyMessages", opts...)
|
|
|
|
|
return b.forwardCopyMany(to, msgs, "copyMessages", opts...)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Edit is magic, it lets you change already sent message.
|
|
|
|
|