Implement Bot API 6.4 changes
This commit is contained in:
parent
26b0a55fe2
commit
5e115c98c7
4 changed files with 268 additions and 33 deletions
|
@ -95,3 +95,10 @@ func (p Params) AddFirstValid(key string, args ...interface{}) error {
|
|||
|
||||
return nil
|
||||
}
|
||||
|
||||
// Merge merges two sets of parameters. Overwrites old fields if present
|
||||
func (p *Params) Merge(p1 Params) {
|
||||
for k, v := range p1 {
|
||||
(*p)[k] = v
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue