File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/main/java/com/pengrad/telegrambot/request Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ public boolean isMultipart() {
4646 }
4747
4848 public String getFileName () {
49- return "file.txt" ;
49+ return ContentTypes . GENERAL_FILE_NAME ;
5050 }
5151
5252 public String getContentType () {
53- return "application/x-www-form-urlencoded" ;
53+ return ContentTypes . GENERAL_MIME_TYPE ;
5454 }
5555}
Original file line number Diff line number Diff line change @@ -18,4 +18,6 @@ abstract public class ContentTypes {
1818 public static final String VIDEO_FILE_NAME = "file.mp4" ;
1919 public static final String VOICE_FILE_NAME = "file.ogg" ;
2020
21+ public static final String GENERAL_MIME_TYPE = "application/x-www-form-urlencoded" ;
22+ public static final String GENERAL_FILE_NAME = DOC_FILE_NAME ;
2123}
You can’t perform that action at this time.
0 commit comments