Skip to content

Fix for sendFile big files #17

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

Merged
merged 1 commit into from
Sep 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/FastBot.h
Original file line number Diff line number Diff line change
Expand Up @@ -789,10 +789,10 @@ class FastBot {
}

// ===================== FILE =====================
uint8_t sendFile(uint8_t* buf, uint16_t length, FB_FileType type, const String& name, const String& id) {
uint8_t sendFile(uint8_t* buf, uint32_t length, FB_FileType type, const String& name, const String& id) {
return _sendFile(buf, length, type, name, id);
}
uint8_t sendFile(uint8_t* buf, uint16_t length, FB_FileType type, const String& name) {
uint8_t sendFile(uint8_t* buf, uint32_t length, FB_FileType type, const String& name) {
return sendFile(buf, length, type, name, chatIDs);
}

Expand All @@ -805,10 +805,10 @@ class FastBot {
}
#endif

uint8_t editFile(uint8_t* buf, uint16_t length, FB_FileType type, const String& name, int32_t msgid, const String& id) {
uint8_t editFile(uint8_t* buf, uint32_t length, FB_FileType type, const String& name, int32_t msgid, const String& id) {
return _editFile(buf, length, type, name, msgid, id);
}
uint8_t editFile(uint8_t* buf, uint16_t length, FB_FileType type, const String& name, int32_t msgid) {
uint8_t editFile(uint8_t* buf, uint32_t length, FB_FileType type, const String& name, int32_t msgid) {
return editFile(buf, length, type, name, msgid, chatIDs);
}

Expand Down