Skip to content

Commit 96380b7

Browse files
authored
Merge pull request #17 from kko-smol/patch-1
Fix for sendFile big files
2 parents 8476c1a + e68a478 commit 96380b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/FastBot.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -789,10 +789,10 @@ class FastBot {
789789
}
790790

791791
// ===================== FILE =====================
792-
uint8_t sendFile(uint8_t* buf, uint16_t length, FB_FileType type, const String& name, const String& id) {
792+
uint8_t sendFile(uint8_t* buf, uint32_t length, FB_FileType type, const String& name, const String& id) {
793793
return _sendFile(buf, length, type, name, id);
794794
}
795-
uint8_t sendFile(uint8_t* buf, uint16_t length, FB_FileType type, const String& name) {
795+
uint8_t sendFile(uint8_t* buf, uint32_t length, FB_FileType type, const String& name) {
796796
return sendFile(buf, length, type, name, chatIDs);
797797
}
798798

@@ -805,10 +805,10 @@ class FastBot {
805805
}
806806
#endif
807807

808-
uint8_t editFile(uint8_t* buf, uint16_t length, FB_FileType type, const String& name, int32_t msgid, const String& id) {
808+
uint8_t editFile(uint8_t* buf, uint32_t length, FB_FileType type, const String& name, int32_t msgid, const String& id) {
809809
return _editFile(buf, length, type, name, msgid, id);
810810
}
811-
uint8_t editFile(uint8_t* buf, uint16_t length, FB_FileType type, const String& name, int32_t msgid) {
811+
uint8_t editFile(uint8_t* buf, uint32_t length, FB_FileType type, const String& name, int32_t msgid) {
812812
return editFile(buf, length, type, name, msgid, chatIDs);
813813
}
814814

0 commit comments

Comments
 (0)