feat: sync ephemeral transient messages
Sync telesrv 570ccf8 (feat(ephemeral): implement Layer 228 transient messages). Skipped telesrv docs changes per public sync rules; normalized the public appearance seed label.
This commit is contained in:
parent
3f78eaa2c6
commit
f49c817def
53 changed files with 5793 additions and 112 deletions
|
|
@ -459,7 +459,7 @@ func isDefaultBotCommandScope(scope tg.BotCommandScopeClass) bool {
|
|||
func domainBotCommands(in []tg.BotCommand) []domain.BotCommand {
|
||||
out := make([]domain.BotCommand, 0, len(in))
|
||||
for _, c := range in {
|
||||
out = append(out, domain.BotCommand{Command: c.Command, Description: c.Description})
|
||||
out = append(out, domain.BotCommand{Command: c.Command, Description: c.Description, Ephemeral: c.Ephemeral})
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
|
@ -467,7 +467,7 @@ func domainBotCommands(in []tg.BotCommand) []domain.BotCommand {
|
|||
func tgBotCommands(in []domain.BotCommand) []tg.BotCommand {
|
||||
out := make([]tg.BotCommand, 0, len(in))
|
||||
for _, c := range in {
|
||||
out = append(out, tg.BotCommand{Command: c.Command, Description: c.Description})
|
||||
out = append(out, tg.BotCommand{Command: c.Command, Description: c.Description, Ephemeral: c.Ephemeral})
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue