SharedChat class final

SharedChat (sharedChat) - basic class

Contains information about a chat shared with a bot.

  • chatId: Chat identifier.
  • title: Title of the chat; for bots only.
  • username: Username of the chat; for bots only.
  • photo: Photo of the chat; for bots only; may be null (optional).
Inheritance

Constructors

SharedChat({required int chatId, required String title, required String username, Photo? photo})
SharedChat (sharedChat) - basic class
const
SharedChat.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

chatId → int
Chat identifier
final
clientId → int?
Client ID, from which this object was received
no setterinherited
currentObjectId → String
TDLib object type for current class instance
no setteroverride
extra → dynamic
A sign from TDLib update
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
photo → Photo?
Photo of the chat; for bots only; may be null
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String
Title of the chat; for bots only
final
username → String
Username of the chat; for bots only
final

Methods

copyWith({int? chatId, String? title, String? username, Photo? photo}) → SharedChat
Copy model with modified properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Convert model to TDLib JSON format
override
toString() → String
Convert model to TDLib JSON format, encoded into String.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

defaultObjectId → const String
TDLib object type