Implement Bot API 6.4 changes

This commit is contained in:
OvyFlash 2022-12-31 02:15:29 +02:00
parent 26b0a55fe2
commit 5e115c98c7
4 changed files with 268 additions and 33 deletions

View file

@ -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
}
}