GeneralLibUtils class
telegram util
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- translateBoldEnd → String
-
no setter
- translateBoldStart → String
-
no setter
Static Methods
-
autoParseChatId(
dynamic data) → dynamic -
bot_emoji_reaction_bads(
) → List< String> -
bot_emoji_reaction_goods(
) → List< String> -
bot_emoji_reactions(
) → List< String> -
createOffset(
{required int totalCount, required int limitCount}) → (List< int> , int) - ccreate offset for tl
-
entitiesTdlibToTgApi(
{required Map replyMarkup}) → Map? -
entitiesTgApiToTdlib(
{required Map replyMarkup}) → Map? -
generate_test_dc_code(
) → String -
generate_test_dc_phone_number(
{String dc = "2"}) → String - If you wish to emulate an application of a user associated with DC number X, it is sufficient to specify the phone number as 99966XYYYY, where YYYY are random numbers, when registering the user.
-
generateRandomNumber(
int min_data, int max_data) → int -
generateToken(
int min_data, int max_data) → String -
getBoolean(
dynamic data) → bool -
messageApiToTdlib(
dynamic message_id) → num - convert message_api to message_api_tdlib example:
-
messagesApiToTdlib(
dynamic message_ids) → List< int> - convert messages_api to messages_api_tdlib example:
-
messagesTdlibToApi(
dynamic message_ids) → List< int> - convert messages_api to messages_api_tdlib example:
-
messageTdlibToApi(
dynamic message_id) → num - convert message_api to message_api_tdlib example:
-
parse_all_chat_id(
{required Map parameters}) → dynamic -
parse_chat_id(
{required Map parameters}) → dynamic -
parseBold(
{required String text, required GeneralLibParseModeType generalLibParseModeType}) → String -
parseCode(
{required String text, required GeneralLibParseModeType generalLibParseModeType}) → String -
parseCodeWithLanguage(
{required String text, required String languageCode, required GeneralLibParseModeType generalLibParseModeType}) → String -
parseHtmlBold(
String text) → String -
parseHtmlCode(
String text) → String -
parseHtmlCodeWithLanguage(
String text, String language) → String -
parseHtmlLink(
String text, String links) → String -
parseHtmlSpoiler(
String text) → String -
parseLink(
{required String text, required String links, required GeneralLibParseModeType generalLibParseModeType}) → String -
parseMarkdownBold(
String text) → String -
parseMarkdownCode(
String text) → String -
parseMarkdownCodeWithLanguage(
String text, String language) → String -
parseMarkdownLink(
String text, String links) → String -
parserBotUserIdFromToken(
dynamic token_bot) → int -
parseSpoiler(
{required String text, required GeneralLibParseModeType generalLibParseModeType}) → String -
pathTdlib(
) → String -
replyMarkupTdlibToTgApi(
{required Map replyMarkup}) → Map? -
replyMarkupTgApiToTdlib(
{required Map replyMarkup}) → Map? -
sender_id_from_int(
int data_id) → Map -
sender_id_from_msg(
Map msg) → Map -
splitByLength(
String text, int length, {bool ignoreEmpty = false}) → List< String> - ccreate offset for tl
-
stringToBase64(
{required String value}) → String - convert string or text ro base64
-
telegram_chat_text(
{required String chat_username, required String text}) → String - convert messages_api to messages_api_tdlib example:
-
telegram_post(
{required dynamic chat_id, required dynamic message_id}) → String - convert messages_api to messages_api_tdlib example:
- convert messages_api to messages_api_tdlib example:
-
telegramInvoke(
{required Map parametersRequest, required String tokenBot, String urlApi = "https://api.telegram.org/", bool isThrowOnError = true, Client? httpClient, Duration? durationTaskTimeOut, Duration? durationFetchTimeOut}) → Future< Map> -
toSuperGroupId(
dynamic chat_id) → int -
typeFile(
{required dynamic content, required Directory? directory_temp}) → Future< Map?> - auto set parameters input file