@@ -293,7 +293,7 @@ impl Timeline {
293
293
#[ allow( clippy:: too_many_arguments) ]
294
294
pub fn send_image (
295
295
self : Arc < Self > ,
296
- url : String ,
296
+ filename : String ,
297
297
thumbnail_url : Option < String > ,
298
298
image_info : ImageInfo ,
299
299
caption : Option < String > ,
@@ -318,7 +318,7 @@ impl Timeline {
318
318
. mentions ( mentions. map ( Into :: into) ) ;
319
319
320
320
self . send_attachment (
321
- url ,
321
+ filename ,
322
322
image_info. mimetype ,
323
323
attachment_config,
324
324
progress_watcher,
@@ -331,7 +331,7 @@ impl Timeline {
331
331
#[ allow( clippy:: too_many_arguments) ]
332
332
pub fn send_video (
333
333
self : Arc < Self > ,
334
- url : String ,
334
+ filename : String ,
335
335
thumbnail_url : Option < String > ,
336
336
video_info : VideoInfo ,
337
337
caption : Option < String > ,
@@ -356,7 +356,7 @@ impl Timeline {
356
356
. mentions ( mentions. map ( Into :: into) ) ;
357
357
358
358
self . send_attachment (
359
- url ,
359
+ filename ,
360
360
video_info. mimetype ,
361
361
attachment_config,
362
362
progress_watcher,
@@ -369,7 +369,7 @@ impl Timeline {
369
369
#[ allow( clippy:: too_many_arguments) ]
370
370
pub fn send_audio (
371
371
self : Arc < Self > ,
372
- url : String ,
372
+ filename : String ,
373
373
audio_info : AudioInfo ,
374
374
caption : Option < String > ,
375
375
formatted_caption : Option < FormattedBody > ,
@@ -391,7 +391,7 @@ impl Timeline {
391
391
. mentions ( mentions. map ( Into :: into) ) ;
392
392
393
393
self . send_attachment (
394
- url ,
394
+ filename ,
395
395
audio_info. mimetype ,
396
396
attachment_config,
397
397
progress_watcher,
@@ -404,7 +404,7 @@ impl Timeline {
404
404
#[ allow( clippy:: too_many_arguments) ]
405
405
pub fn send_voice_message (
406
406
self : Arc < Self > ,
407
- url : String ,
407
+ filename : String ,
408
408
audio_info : AudioInfo ,
409
409
waveform : Vec < u16 > ,
410
410
caption : Option < String > ,
@@ -428,7 +428,7 @@ impl Timeline {
428
428
. mentions ( mentions. map ( Into :: into) ) ;
429
429
430
430
self . send_attachment (
431
- url ,
431
+ filename ,
432
432
audio_info. mimetype ,
433
433
attachment_config,
434
434
progress_watcher,
@@ -441,7 +441,7 @@ impl Timeline {
441
441
#[ allow( clippy:: too_many_arguments) ]
442
442
pub fn send_file (
443
443
self : Arc < Self > ,
444
- url : String ,
444
+ filename : String ,
445
445
file_info : FileInfo ,
446
446
caption : Option < String > ,
447
447
formatted_caption : Option < FormattedBody > ,
@@ -463,7 +463,7 @@ impl Timeline {
463
463
. mentions ( mentions. map ( Into :: into) ) ;
464
464
465
465
self . send_attachment (
466
- url ,
466
+ filename ,
467
467
file_info. mimetype ,
468
468
attachment_config,
469
469
progress_watcher,
0 commit comments