FixRecognizedTextWithAi class
Fixes text received as a result of speech recognition using an AI model by correcting recognition errors and adding punctuation; must not be used in secret chats. May return an error with a message "AICOMPOSE_FLOOD_PREMIUM" if Telegram Premium is required to send further requests Returns FormattedText
- Inheritance
-
- Object
- TdFunction
- FixRecognizedTextWithAi
- Available extensions
- Annotations
-
- @immutable
Constructors
- FixRecognizedTextWithAi({required FormattedText text})
-
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
- text → FormattedText
-
text The recognized text
final
Methods
-
copyWith(
{FormattedText? text}) → FixRecognizedTextWithAi -
Available on FixRecognizedTextWithAi, provided by the FixRecognizedTextWithAiExtensions 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