| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
TD.Query.AddBotSecondaryUsername
Documentation
data AddBotSecondaryUsername Source #
Adds a secondary username to a bot. Can be called only if userTypeBot.can_be_edited, the bot has no secondary username and the current user has Telegram Premium subscription. May return an error with a message OWNER_USERNAMES_LIMIT_EXCEEDED if the current user already owns at least getOption("secondary_bot_username_count_max") bots with a secondary username. Returns Ok
Constructors
| AddBotSecondaryUsername | |
Instances
| ToJSON AddBotSecondaryUsername Source # | |
Defined in TD.Query.AddBotSecondaryUsername Methods toJSON :: AddBotSecondaryUsername -> Value # toEncoding :: AddBotSecondaryUsername -> Encoding # toJSONList :: [AddBotSecondaryUsername] -> Value # | |
| Show AddBotSecondaryUsername Source # | |
Defined in TD.Query.AddBotSecondaryUsername Methods showsPrec :: Int -> AddBotSecondaryUsername -> ShowS # show :: AddBotSecondaryUsername -> String # showList :: [AddBotSecondaryUsername] -> ShowS # | |
| Eq AddBotSecondaryUsername Source # | |
Defined in TD.Query.AddBotSecondaryUsername Methods (==) :: AddBotSecondaryUsername -> AddBotSecondaryUsername -> Bool # (/=) :: AddBotSecondaryUsername -> AddBotSecondaryUsername -> Bool # | |
| ShortShow AddBotSecondaryUsername Source # | |
Defined in TD.Query.AddBotSecondaryUsername Methods | |