@@ -252,7 +252,6 @@ def forwardMessage(self,
252
252
def sendPhoto (self ,
253
253
chat_id ,
254
254
photo ,
255
- filename = None ,
256
255
caption = None ,
257
256
** kwargs ):
258
257
"""Use this method to send photos.
@@ -264,9 +263,6 @@ def sendPhoto(self,
264
263
Photo to send. You can either pass a file_id as String to resend a
265
264
photo that is already on the Telegram servers, or upload a new
266
265
photo using multipart/form-data.
267
- filename:
268
- File name that shows in telegram message (it is usefull when you
269
- send file generated by temp module, for example). [Optional]
270
266
caption:
271
267
Photo caption (may also be used when resending photos by file_id).
272
268
[Optional]
@@ -286,8 +282,6 @@ def sendPhoto(self,
286
282
data = {'chat_id' : chat_id ,
287
283
'photo' : photo }
288
284
289
- if filename :
290
- data ['filename' ] = filename
291
285
if caption :
292
286
data ['caption' ] = caption
293
287
@@ -298,7 +292,6 @@ def sendPhoto(self,
298
292
def sendAudio (self ,
299
293
chat_id ,
300
294
audio ,
301
- filename = None ,
302
295
duration = None ,
303
296
performer = None ,
304
297
title = None ,
@@ -321,9 +314,6 @@ def sendAudio(self,
321
314
Audio file to send. You can either pass a file_id as String to
322
315
resend an audio that is already on the Telegram servers, or upload
323
316
a new audio file using multipart/form-data.
324
- filename:
325
- File name that shows in telegram message (it is usefull when you
326
- send file generated by temp module, for example). [Optional]
327
317
duration:
328
318
Duration of sent audio in seconds. [Optional]
329
319
performer:
@@ -346,8 +336,6 @@ def sendAudio(self,
346
336
data = {'chat_id' : chat_id ,
347
337
'audio' : audio }
348
338
349
- if filename :
350
- data ['filename' ] = filename
351
339
if duration :
352
340
data ['duration' ] = duration
353
341
if performer :
@@ -402,7 +390,6 @@ def sendDocument(self,
402
390
def sendSticker (self ,
403
391
chat_id ,
404
392
sticker ,
405
- filename = None ,
406
393
** kwargs ):
407
394
"""Use this method to send .webp stickers.
408
395
@@ -413,9 +400,6 @@ def sendSticker(self,
413
400
Sticker to send. You can either pass a file_id as String to resend
414
401
a sticker that is already on the Telegram servers, or upload a new
415
402
sticker using multipart/form-data.
416
- filename:
417
- File name that shows in telegram message (it is usefull when you
418
- send file generated by temp module, for example). [Optional]
419
403
reply_to_message_id:
420
404
If the message is a reply, ID of the original message. [Optional]
421
405
reply_markup:
@@ -431,9 +415,6 @@ def sendSticker(self,
431
415
432
416
data = {'chat_id' : chat_id ,
433
417
'sticker' : sticker }
434
-
435
- if filename :
436
- data ['filename' ] = filename
437
418
438
419
return url , data
439
420
@@ -442,7 +423,6 @@ def sendSticker(self,
442
423
def sendVideo (self ,
443
424
chat_id ,
444
425
video ,
445
- filename = None ,
446
426
duration = None ,
447
427
caption = None ,
448
428
** kwargs ):
@@ -456,9 +436,6 @@ def sendVideo(self,
456
436
Video to send. You can either pass a file_id as String to resend a
457
437
video that is already on the Telegram servers, or upload a new
458
438
video file using multipart/form-data.
459
- filename:
460
- File name that shows in telegram message (it is usefull when you
461
- send file generated by temp module, for example). [Optional]
462
439
duration:
463
440
Duration of sent video in seconds. [Optional]
464
441
caption:
@@ -480,8 +457,6 @@ def sendVideo(self,
480
457
data = {'chat_id' : chat_id ,
481
458
'video' : video }
482
459
483
- if filename :
484
- data ['filename' ] = filename
485
460
if duration :
486
461
data ['duration' ] = duration
487
462
if caption :
@@ -494,7 +469,6 @@ def sendVideo(self,
494
469
def sendVoice (self ,
495
470
chat_id ,
496
471
voice ,
497
- filename = None ,
498
472
duration = None ,
499
473
** kwargs ):
500
474
"""Use this method to send audio files, if you want Telegram clients to
@@ -511,9 +485,6 @@ def sendVoice(self,
511
485
Audio file to send. You can either pass a file_id as String to
512
486
resend an audio that is already on the Telegram servers, or upload
513
487
a new audio file using multipart/form-data.
514
- filename:
515
- File name that shows in telegram message (it is usefull when you
516
- send file generated by temp module, for example). [Optional]
517
488
duration:
518
489
Duration of sent audio in seconds. [Optional]
519
490
reply_to_message_id:
@@ -532,8 +503,6 @@ def sendVoice(self,
532
503
data = {'chat_id' : chat_id ,
533
504
'voice' : voice }
534
505
535
- if filename :
536
- data ['filename' ] = filename
537
506
if duration :
538
507
data ['duration' ] = duration
539
508
0 commit comments