discontinuedPackage packagex has been discontinued.

TelegramBotApi class

Telegram Bot Api library: example:

TelegramBotApi tg = TelegramBotApi("token_bot");
tg.request("sendMessage",  parameters: {
  "chat_id": 12345,
  "text": "Hello world"
});

Constructors

TelegramBotApi({required String token_bot, Map? clientOption, Client? httpClient})
list methods: api:

Properties

client_option → Map
TelegramClientUncompleDocumentation
final
hashCode → int
The hash code for this object.
no setterinherited
httpClient → Client
TelegramClientUncompleDocumentation
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
token_bot ↔ String
TelegramClientUncompleDocumentation
latefinal

Methods

fileDownload(String url, {required String path, void onDownloadProgress(int bytes, int totalBytes)?}) → Future<String>
donload file with proggres
invoke({required Map parameters, bool is_form = false, String? tokenBot, String? urlApi, String? clientType, bool isThrowOnError = true, void onUploadProgress(int bytes, int totalBytes)?}) → Future<Map>
call api latest bot api example:
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request(String method, {Map? parameters, bool is_form = false, String? tokenBot, String? urlApi, String? clientType, void onUploadProgress(int bytes, int totalBytes)?, bool isAutoExtendMessage = false, bool isThrowOnError = true, Client? httpClient}) → Future<Map>
call api latest bot api example:
requestForm(String method, {Map parameters = const {}, bool is_form = false, String? tokenBot, String? urlApi, String? clientType, void onUploadProgress(int bytes, int totalBytes)?, bool isAutoExtendMessage = false, bool isThrowOnError = true, Client? httpClient}) → Future<Map>
call api latest bot api with upload file example:
telegram_bot_api_file({required File file}) → TelegramBotApiFileData
TelegramClientUncompleDocumentation
telegram_bot_api_file_data({required String name, required Uint8List buffer_data}) → TelegramBotApiFileData
TelegramClientUncompleDocumentation
toString() → String
A string representation of this object.
inherited
typeFile(dynamic content) → Map
General Library Documentation Undocument By General Corporation & Global Corporation & General Developer
utils_remove_parameters({required Map data}) → void
TelegramClientUncompleDocumentation
utils_remove_parameterss({required List datas}) → void
TelegramClientUncompleDocumentation

Operators

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