GeneralLibUtils class

telegram util

Constructors

GeneralLibUtils()

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
GeneralLib
no setter
translateBoldStart → String
GeneralLib
no setter

Static Methods

autoParseChatId(dynamic data) → dynamic
GeneralLib
bot_emoji_reaction_bads() → List<String>
GeneralLib
bot_emoji_reaction_goods() → List<String>
GeneralLib
bot_emoji_reactions() → List<String>
GeneralLib
createOffset({required int totalCount, required int limitCount}) → (List<int>, int)
ccreate offset for tl
entitiesTdlibToTgApi({required Map replyMarkup}) → Map?
GeneralLib
entitiesTgApiToTdlib({required Map replyMarkup}) → Map?
GeneralLib
generate_test_dc_code() → String
GeneralLib
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
GeneralLib
generateToken(int min_data, int max_data) → String
GeneralLib
getBoolean(dynamic data) → bool
GeneralLib
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
GeneralLib
parse_chat_id({required Map parameters}) → dynamic
GeneralLib
parseBold({required String text, required GeneralLibParseModeType generalLibParseModeType}) → String
GeneralLib
parseCode({required String text, required GeneralLibParseModeType generalLibParseModeType}) → String
GeneralLib
parseCodeWithLanguage({required String text, required String languageCode, required GeneralLibParseModeType generalLibParseModeType}) → String
GeneralLib
parseHtmlBold(String text) → String
GeneralLib
parseHtmlCode(String text) → String
GeneralLib
parseHtmlCodeWithLanguage(String text, String language) → String
GeneralLib
GeneralLib
parseHtmlSpoiler(String text) → String
GeneralLib
GeneralLib
parseMarkdownBold(String text) → String
GeneralLib
parseMarkdownCode(String text) → String
GeneralLib
parseMarkdownCodeWithLanguage(String text, String language) → String
GeneralLib
GeneralLib
parserBotUserIdFromToken(dynamic token_bot) → int
GeneralLib
parseSpoiler({required String text, required GeneralLibParseModeType generalLibParseModeType}) → String
GeneralLib
pathTdlib() → String
GeneralLib
replyMarkupTdlibToTgApi({required Map replyMarkup}) → Map?
GeneralLib
replyMarkupTgApiToTdlib({required Map replyMarkup}) → Map?
GeneralLib
sender_id_from_int(int data_id) → Map
GeneralLib
sender_id_from_msg(Map msg) → Map
GeneralLib
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:
telegram_share({required String text, required String url}) → String
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>
GeneralLib
toSuperGroupId(dynamic chat_id) → int
GeneralLib
typeFile({required dynamic content, required Directory? directory_temp}) → Future<Map?>
auto set parameters input file