Class TdApi.SetChatPhoto

  • Enclosing class:
    TdApi

    public static class TdApi.SetChatPhoto
    extends TdApi.Function
    Changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires canChangeInfo administrator right.

    Returns Ok

    • Field Detail

      • chatId

        public long chatId
        Chat identifier.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SetChatPhoto

        public SetChatPhoto()
        Default constructor for a function, which changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires canChangeInfo administrator right.

        Returns Ok

      • SetChatPhoto

        public SetChatPhoto​(long chatId,
                            TdApi.InputChatPhoto photo)
        Creates a function, which changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires canChangeInfo administrator right.

        Returns Ok

        Parameters:
        chatId - Chat identifier.
        photo - New chat photo; pass null to delete the chat photo.