telegram api method · layer 229 · #418d549c

channels.toggleSignatures

usable by users

Enable/disable message signatures in channels

definition

channels.toggleSignatures#418d549c flags:# signatures_enabled:flags.0?true profiles_enabled:flags.1?true channel:InputChannel = Updates;

parameters

nametypedescription
flags#Flags, see TL conditional fields
signatures_enabledflags.0?trueIf set, enables message signatures.
profiles_enabledflags.1?trueIf set, messages from channel admins will link to their profiles, just like for group messages: can only be set if the signatures_enabled flag is set.
channelInputChannelChannel

returns

Updates

errors (6)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection.
400CHANNEL_INVALIDThe provided channel is invalid.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400CHAT_ID_INVALIDThe provided chat id is invalid.
400CHAT_NOT_MODIFIEDNo changes were made to chat information because the new information you passed is identical to the current information.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).

history

present in layers 62–229 · constructor id changed 1×

idlayers
#1f69b60662–185
#418d549c186–229