SearchPublicChat class

Searches for a public chat by its username. Currently, only private chats, supergroups, and channels can be public. Returns the chat if found; otherwise, an error is returned Returns Chat

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

SearchPublicChat({required String username})
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
username → String
username Username to be resolved
final

Methods

copyWith({String? username}) → SearchPublicChat

Available on SearchPublicChat, provided by the SearchPublicChatExtensions extension

getConstructor() → String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

constructor → const String