Skip to content
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

Open
DinoLeung opened this issue May 28, 2018 · 2 comments
Open

sendMediaGroup does not work with uploading files #9

DinoLeung opened this issue May 28, 2018 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@DinoLeung
Copy link
Owner

DinoLeung commented May 28, 2018

inputmedia can only take file_id and HTTP URL right now
need to implement POST multipart/form-data uploading files

might need to implement a inputFile object
https://core.telegram.org/bots/api#sending-files

@DinoLeung DinoLeung added the help wanted Extra attention is needed label Dec 13, 2018
@CorvetteCole
Copy link

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?

@CorvetteCole
Copy link

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
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants