-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sendMediaGroup does not work with uploading files #9
Labels
help wanted
Extra attention is needed
Comments
Closed
I would like to be able to send generated PDF files directly through Telegram to a user upon a command. Any way we can work on this? |
this commit from a fork that supported uploading videos and photos may be helpful: bierbaumtim@668ca95 |
busslina
added a commit
to busslina/TeleDart
that referenced
this issue
Feb 6, 2023
Example of error stack trace: http response json data: {ok: false, error_code: 400, description: Bad Request: message can't be deleted} Unhandled exception: type 'Null' is not a subtype of type 'Map<String, dynamic>' in type cast #0 _$ErrorResponseFromJson (package:teledart/src/telegram/model.g.dart:3578:30) DinoLeung#1 new ErrorResponse.fromJson (package:teledart/src/telegram/models/response.dart:78:7) DinoLeung#2 HttpClient._parseResponse (package:teledart/src/util/http_client.dart:43:51) DinoLeung#3 _rootRunUnary (dart:async/zone.dart:1399:47) <asynchronous suspension> DinoLeung#4 Telegram.deleteMessage (package:teledart/src/telegram/telegram.dart:2346:12) <asynchronous suspension> DinoLeung#5 TelegramMessageRegister.removeMessages.<anonymous closure> (package:busslina_dart_rest_lib/core/module> <asynchronous suspension> DinoLeung#6 BasicLock.synchronized (package:synchronized/src/basic_lock.dart:33:16) <asynchronous suspension> DinoLeung#7 _TelegramHandler._getMenuCommandHandler (package:busslina_dart_rest_lib/core/modules/system.module.dar> <asynchronous suspension> DinoLeung#8 TelegramBot.onCommand.<anonymous closure> (package:busslina_dart_telegram_lib/src/core/app/telegram_bo> <asynchronous suspension> DinoLeung#9 BasicLock.synchronized (package:synchronized/src/basic_lock.dart:33:16) <asynchronous suspension> autodia-server.service: Main process exited, code=exited, status=255/EXCEPTION
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
inputmedia can only take
file_id
andHTTP URL
right nowneed to implement
POST
multipart/form-data
uploading filesmight need to implement a
inputFile
objecthttps://core.telegram.org/bots/api#sending-files
The text was updated successfully, but these errors were encountered: