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

sendDocument API is missing #30

Closed
qnikst opened this issue Jul 7, 2020 · 0 comments · Fixed by #31
Closed

sendDocument API is missing #30

qnikst opened this issue Jul 7, 2020 · 0 comments · Fixed by #31

Comments

@qnikst
Copy link
Contributor

qnikst commented Jul 7, 2020

There is an API for sending documents by the bot https://core.telegram.org/bots/api#senddocument

But it's missing form the library. Would be nice to have it.

qnikst added a commit to SiriusCourses/telegram-bot-simple that referenced this issue Jul 7, 2020
sendDocument is implemented as a special wrapper that decide
what content type to use based on the query content. Such approach
is not servant-client friendly, so we ToMultipart function becomes
partial, but it may be ok, as other solutions would require manual
copy of the types and it will be much harder to follow.

Fixes fizruk#30.
qnikst added a commit to SiriusCourses/telegram-bot-simple that referenced this issue Jul 8, 2020
sendDocument is implemented as a special wrapper that decide
what content type to use based on the query content. Such approach
is not servant-client friendly, so we ToMultipart function becomes
partial, but it may be ok, as other solutions would require manual
copy of the types and it will be much harder to follow.

Fixes fizruk#30.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant