-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathparameters.go
1108 lines (949 loc) · 22.2 KB
/
parameters.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package telegram
// MethodOption type
type MethodOption func(*request)
// SetOffset option function
func SetOffset(v int) MethodOption {
return func(r *request) {
r.params["offset"] = v
}
}
// SetLimit option function
func SetLimit(v int) MethodOption {
return func(r *request) {
r.params["limit"] = v
}
}
// SetTimeout option function
func SetTimeout(v int) MethodOption {
return func(r *request) {
r.params["timeout"] = v
}
}
// SetAllowedUpdates option function
func SetAllowedUpdates(v ...string) MethodOption {
return func(r *request) {
r.params["allowed_updates"] = v
}
}
// SetURL option function
func SetURL(v string) MethodOption {
return func(r *request) {
r.params["url"] = v
}
}
// SetCertificate option function
func SetCertificate(v InputFile) MethodOption {
return func(r *request) {
r.params["certificate"] = v
}
}
// SetIPAddress option function
func SetIPAddress(v string) MethodOption {
return func(r *request) {
r.params["ip_address"] = v
}
}
// DropPendingUpdates option function
func DropPendingUpdates() MethodOption {
return func(r *request) {
r.params["drop_pending_updates"] = true
}
}
// OnlyIfBanned option function
func OnlyIfBanned() MethodOption {
return func(r *request) {
r.params["only_if_banned"] = true
}
}
// DisableContentTypeDetection option function
func DisableContentTypeDetection() MethodOption {
return func(r *request) {
r.params["disable_content_type_detection"] = true
}
}
// SetMaxConnections option function
func SetMaxConnections(v int) MethodOption {
return func(r *request) {
r.params["max_connections"] = v
}
}
// SetChatID option function
func SetChatID(v int64) MethodOption {
return func(r *request) {
r.params["chat_id"] = v
}
}
// SetChatUsername option function
func SetChatUsername(v string) MethodOption {
return func(r *request) {
r.params["chat_id"] = v
}
}
// SetText option function
func SetText(v string) MethodOption {
return func(r *request) {
r.params["text"] = v
}
}
// SetParseMode option function
func SetParseMode(v string) MethodOption {
return func(r *request) {
r.params["parse_mode"] = v
}
}
// DisableWebPagePreview option function
func DisableWebPagePreview() MethodOption {
return func(r *request) {
r.params["disable_web_page_preview"] = true
}
}
// DisableNotification option function
func DisableNotification() MethodOption {
return func(r *request) {
r.params["disable_notification"] = true
}
}
// SetReplyToMessageID option function
func SetReplyToMessageID(v int) MethodOption {
return func(r *request) {
r.params["reply_to_message_id"] = v
}
}
// SetReplyMarkup option function
func SetReplyMarkup(v interface{}) MethodOption {
return func(r *request) {
r.params["reply_markup"] = v
}
}
// SetFromChatID option function
func SetFromChatID(v int) MethodOption {
return func(r *request) {
r.params["from_chat_id"] = v
}
}
// SetFromChatUsername option function
func SetFromChatUsername(v string) MethodOption {
return func(r *request) {
r.params["from_chat_id"] = v
}
}
// SetMessageID option function
func SetMessageID(v int) MethodOption {
return func(r *request) {
r.params["message_id"] = v
}
}
// SetPhotoFromFileID option function
func SetPhotoFromFileID(v string) MethodOption {
return func(r *request) {
r.params["photo"] = v
}
}
// SetPhotoFromURL option function
func SetPhotoFromURL(v string) MethodOption {
return func(r *request) {
r.params["photo"] = v
}
}
// SetPhoto option function
func SetPhoto(v InputFile) MethodOption {
return func(r *request) {
r.params["photo"] = v
}
}
// SetCaption option function
func SetCaption(v string) MethodOption {
return func(r *request) {
r.params["caption"] = v
}
}
// SetAudioFromFileID option function
func SetAudioFromFileID(v string) MethodOption {
return func(r *request) {
r.params["audio"] = v
}
}
// SetAudioFromURL option function
func SetAudioFromURL(v string) MethodOption {
return func(r *request) {
r.params["audio"] = v
}
}
// SetAudio option function
func SetAudio(v InputFile) MethodOption {
return func(r *request) {
r.params["audio"] = v
}
}
// SetDuration option function
func SetDuration(v int) MethodOption {
return func(r *request) {
r.params["duration"] = v
}
}
// SetPerformer option function
func SetPerformer(v string) MethodOption {
return func(r *request) {
r.params["performer"] = v
}
}
// SetTitle option function
func SetTitle(v string) MethodOption {
return func(r *request) {
r.params["title"] = v
}
}
// TODO: add Thumb string option
// SetThumb option function
func SetThumb(v InputFile) MethodOption {
return func(r *request) {
r.params["thumb"] = v
}
}
// SetDocumentFromFileID option function
func SetDocumentFromFileID(v string) MethodOption {
return func(r *request) {
r.params["document"] = v
}
}
// SetDocumentFromURL option function
func SetDocumentFromURL(v string) MethodOption {
return func(r *request) {
r.params["document"] = v
}
}
// SetDocument option function
func SetDocument(v InputFile) MethodOption {
return func(r *request) {
r.params["document"] = v
}
}
// SetVideoFromFileID option function
func SetVideoFromFileID(v string) MethodOption {
return func(r *request) {
r.params["video"] = v
}
}
// SetVideoFromURL option function
func SetVideoFromURL(v string) MethodOption {
return func(r *request) {
r.params["video"] = v
}
}
// SetVideo option function
func SetVideo(v InputFile) MethodOption {
return func(r *request) {
r.params["video"] = v
}
}
// SetWidth option function
func SetWidth(v string) MethodOption {
return func(r *request) {
r.params["width"] = v
}
}
// SetHeight option function
func SetHeight(v string) MethodOption {
return func(r *request) {
r.params["height"] = v
}
}
// SupportsStreaming option function
func SupportsStreaming() MethodOption {
return func(r *request) {
r.params["supports_streaming"] = true
}
}
// SetAnimationFromFileID option function
func SetAnimationFromFileID(v string) MethodOption {
return func(r *request) {
r.params["animation"] = v
}
}
// SetAnimationFromURL option function
func SetAnimationFromURL(v string) MethodOption {
return func(r *request) {
r.params["animation"] = v
}
}
// SetAnimation option function
func SetAnimation(v InputFile) MethodOption {
return func(r *request) {
r.params["animation"] = v
}
}
// SetVoiceFromFileID option function
func SetVoiceFromFileID(v string) MethodOption {
return func(r *request) {
r.params["voice"] = v
}
}
// SetVoiceFromURL option function
func SetVoiceFromURL(v string) MethodOption {
return func(r *request) {
r.params["voice"] = v
}
}
// SetVoice option function
func SetVoice(v InputFile) MethodOption {
return func(r *request) {
r.params["voice"] = v
}
}
// SetVideoNoteFromFileID option function
func SetVideoNoteFromFileID(v string) MethodOption {
return func(r *request) {
r.params["video_note"] = v
}
}
// SetVideoNoteFromURL option function
func SetVideoNoteFromURL(v string) MethodOption {
return func(r *request) {
r.params["video_note"] = v
}
}
// SetVideoNote option function
func SetVideoNote(v InputFile) MethodOption {
return func(r *request) {
r.params["video_note"] = v
}
}
// SetMedia option function
func SetMedia(v ...InputMedia) MethodOption {
return func(r *request) {
r.params["media"] = v
}
}
// SetLatitude option function
func SetLatitude(v float32) MethodOption {
return func(r *request) {
r.params["latitude"] = v
}
}
// SetLongitude option function
func SetLongitude(v float32) MethodOption {
return func(r *request) {
r.params["longitude"] = v
}
}
// SetHorizontalAccuracy option function
func SetHorizontalAccuracy(v float32) MethodOption {
return func(r *request) {
r.params["horizontal_accuracy"] = v
}
}
// SetLivePeriod option function
func SetLivePeriod(v int) MethodOption {
return func(r *request) {
r.params["live_period"] = v
}
}
// SetHeading option function
func SetHeading(v int) MethodOption {
return func(r *request) {
r.params["heading"] = v
}
}
// SetProximityAlertRadius option function
func SetProximityAlertRadius(v int) MethodOption {
return func(r *request) {
r.params["proximity_alert_radius"] = v
}
}
// SetInlineMessageID option function
func SetInlineMessageID(v string) MethodOption {
return func(r *request) {
r.params["inline_message_id"] = v
}
}
// SetInlineQueryID option function
func SetInlineQueryID(v string) MethodOption {
return func(r *request) {
r.params["inline_query_id"] = v
}
}
// SetResults option function
func SetResults(v []InlineQueryResult) MethodOption {
return func(r *request) {
r.params["results"] = v
}
}
// SetAddress option function
func SetAddress(v string) MethodOption {
return func(r *request) {
r.params["address"] = v
}
}
// SetFoursquareID option function
func SetFoursquareID(v string) MethodOption {
return func(r *request) {
r.params["foursquare_id"] = v
}
}
// SetFoursquareType option function
func SetFoursquareType(v string) MethodOption {
return func(r *request) {
r.params["foursquare_type"] = v
}
}
// SetGooglePlaceID option function
func SetGooglePlaceID(v string) MethodOption {
return func(r *request) {
r.params["google_place_id"] = v
}
}
// SetGooglePlaceType option function
func SetGooglePlaceType(v string) MethodOption {
return func(r *request) {
r.params["google_place_type"] = v
}
}
// SetPhoneNumber option function
func SetPhoneNumber(v string) MethodOption {
return func(r *request) {
r.params["phone_number"] = v
}
}
// SetFirstName option function
func SetFirstName(v string) MethodOption {
return func(r *request) {
r.params["first_name"] = v
}
}
// SetLastName option function
func SetLastName(v string) MethodOption {
return func(r *request) {
r.params["last_name"] = v
}
}
// SetVCard option function
func SetVCard(v string) MethodOption {
return func(r *request) {
r.params["vcard"] = v
}
}
// SetQuestion option function
func SetQuestion(v string) MethodOption {
return func(r *request) {
r.params["question"] = v
}
}
// SetOptions option function
func SetOptions(v ...string) MethodOption {
return func(r *request) {
r.params["options"] = v
}
}
// SetCommands option function
func SetCommands(v ...BotCommand) MethodOption {
return func(r *request) {
r.params["commands"] = v
}
}
// SetScope option function
func SetScope(v BotCommandScope) MethodOption {
return func(r *request) {
r.params["scope"] = v
}
}
// SetLanguageCode option function
func SetLanguageCode(v string) MethodOption {
return func(r *request) {
r.params["language_code"] = v
}
}
type Action string
const (
ActionTyping Action = "typing"
ActionUploadPhoto Action = "upload_photo"
ActionRecordVideo Action = "record_video"
ActionUploadVideo Action = "upload_video"
ActionRecordVoice Action = "record_voice"
ActionUploadVoice Action = "upload_voice"
ActionUploadDocument Action = "upload_document"
ActionChooseSticker Action = "choose_sticker"
ActionFindLocation Action = "find_location"
ActionRecordVideoNote Action = "record_video_note"
ActionUploadVideoNote Action = "upload_video_note"
)
// SetAction option function
func SetAction(v Action) MethodOption {
return func(r *request) {
r.params["action"] = v
}
}
// SetFileID option function
func SetFileID(v string) MethodOption {
return func(r *request) {
r.params["file_id"] = v
}
}
// SetUserID option function
func SetUserID(v int64) MethodOption {
return func(r *request) {
r.params["user_id"] = v
}
}
// SetUntilDate option function
func SetUntilDate(v int) MethodOption {
return func(r *request) {
r.params["until_date"] = v
}
}
// AllowSendingWithoutReply option function
func AllowSendingWithoutReply() MethodOption {
return func(r *request) {
r.params["allow_sending_without_reply"] = true
}
}
// CanSendMessages option function
func CanSendMessages() MethodOption {
return func(r *request) {
r.params["can_send_messages"] = true
}
}
// CanSendMediaMessages option function
func CanSendMediaMessages() MethodOption {
return func(r *request) {
r.params["can_send_media_messages"] = true
}
}
// CanSendOtherMessages option function
func CanSendOtherMessages() MethodOption {
return func(r *request) {
r.params["can_send_other_messages"] = true
}
}
// CanAddWebPagePreviews option function
func CanAddWebPagePreviews() MethodOption {
return func(r *request) {
r.params["can_add_web_page_previews"] = true
}
}
// CanChangeInfo option function
func CanChangeInfo() MethodOption {
return func(r *request) {
r.params["can_change_info"] = true
}
}
// CanPostMessages option function
func CanPostMessages() MethodOption {
return func(r *request) {
r.params["can_post_messages"] = true
}
}
// CanEditMessages option function
func CanEditMessages() MethodOption {
return func(r *request) {
r.params["can_edit_messages"] = true
}
}
// CanDeleteMessages option function
func CanDeleteMessages() MethodOption {
return func(r *request) {
r.params["can_delete_messages"] = true
}
}
// CanInviteUsers option function
func CanInviteUsers() MethodOption {
return func(r *request) {
r.params["can_invite_users"] = true
}
}
// CanRestrictMembers option function
func CanRestrictMembers() MethodOption {
return func(r *request) {
r.params["can_restrict_members"] = true
}
}
// CanPinMessages option function
func CanPinMessages() MethodOption {
return func(r *request) {
r.params["can_pin_messages"] = true
}
}
// CanPromoteMembers option function
func CanPromoteMembers() MethodOption {
return func(r *request) {
r.params["can_promote_members"] = true
}
}
// SetDescription option function
func SetDescription(v string) MethodOption {
return func(r *request) {
r.params["description"] = v
}
}
// SetStickerSetName option function
func SetStickerSetName(v string) MethodOption {
return func(r *request) {
r.params["sticker_set_name"] = v
}
}
// SetCallbackQueryID option function
func SetCallbackQueryID(v string) MethodOption {
return func(r *request) {
r.params["callback_query_id"] = v
}
}
// ShowAlert option function
func ShowAlert() MethodOption {
return func(r *request) {
r.params["show_alert"] = true
}
}
// SetCacheTime option function
func SetCacheTime(v int) MethodOption {
return func(r *request) {
r.params["cache_time"] = v
}
}
// SetNextOffset option function
func SetNextOffset(v string) MethodOption {
return func(r *request) {
r.params["next_offset"] = v
}
}
// SetSwitchPMText option function
func SetSwitchPMText(v string) MethodOption {
return func(r *request) {
r.params["switch_pm_text"] = v
}
}
// SetSwitchPMParameter option function
func SetSwitchPMParameter(v string) MethodOption {
return func(r *request) {
r.params["switch_pm_parameter"] = v
}
}
// IsPersonal option function
func IsPersonal() MethodOption {
return func(r *request) {
r.params["is_personal"] = true
}
}
// SetPermissions option function
func SetPermissions(v ChatPermissions) MethodOption {
return func(r *request) {
r.params["permissions"] = v
}
}
// SetCustomTitle option function
func SetCustomTitle(v string) MethodOption {
return func(r *request) {
r.params["custom_title"] = v
}
}
// IsAnonymous option function
func IsAnonymous() MethodOption {
return func(r *request) {
r.params["is_anonymous"] = true
}
}
// SetType option function
func SetType(v string) MethodOption {
return func(r *request) {
r.params["type"] = v
}
}
// SetInlineQueryResultType option function
func SetInlineQueryResultType(v InlineQueryResultType) MethodOption {
return func(r *request) {
r.params["type"] = v
}
}
// AllowsMultipleAnswers option function
func AllowsMultipleAnswers() MethodOption {
return func(r *request) {
r.params["allows_multiple_answers"] = true
}
}
// SetCorrectOptionID option function
func SetCorrectOptionID(v int) MethodOption {
return func(r *request) {
r.params["correct_option_id"] = v
}
}
// IsClosed option function
func IsClosed() MethodOption {
return func(r *request) {
r.params["is_closed"] = true
}
}
// SetPNGStickerFromFileID option function
func SetPNGStickerFromFileID(v string) MethodOption {
return func(r *request) {
r.params["png_sticker"] = v
}
}
// SetPNGStickerFromURL option function
func SetPNGStickerFromURL(v string) MethodOption {
return func(r *request) {
r.params["png_sticker"] = v
}
}
// SetPNGSticker option function
func SetPNGSticker(v InputFile) MethodOption {
return func(r *request) {
r.params["png_sticker"] = v
}
}
// SetTGSSticker option function
func SetTGSSticker(v InputFile) MethodOption {
return func(r *request) {
r.params["tgs_sticker"] = v
}
}
// SetEmojis option function
func SetEmojis(v string) MethodOption {
return func(r *request) {
r.params["emojis"] = v
}
}
// SetEmoji option function
func SetEmoji(v string) MethodOption {
return func(r *request) {
r.params["emoji"] = v
}
}
// ContainsMasks option function
func ContainsMasks() MethodOption {
return func(r *request) {
r.params["contains_masks"] = true
}
}
// SetMaskPosition option function
func SetMaskPosition(v MaskPosition) MethodOption {
return func(r *request) {
r.params["mask_position"] = v
}
}
// SetExplanation option function
func SetExplanation(v string) MethodOption {
return func(r *request) {
r.params["explanation"] = v
}
}
// SetExplanationParseMode option function
func SetExplanationParseMode(v string) MethodOption {
return func(r *request) {
r.params["explanation_parse_mode"] = v
}
}
// SetOpenPeriod option function
func SetOpenPeriod(v int) MethodOption {
return func(r *request) {
r.params["open_period"] = v
}
}
// SetCloseDate option function
func SetCloseDate(v int) MethodOption {
return func(r *request) {
r.params["close_date"] = v
}
}
// SetExpireDate option function
func SetExpireDate(v int) MethodOption {
return func(r *request) {
r.params["expire_date"] = v
}
}
// SetMemberLimit option function
func SetMemberLimit(v int) MethodOption {
return func(r *request) {
r.params["member_limit"] = v
}
}
// SetInviteLink option function
func SetInviteLink(v string) MethodOption {
return func(r *request) {
r.params["invite_link"] = v
}
}
// CanManageChat option function
func CanManageChat() MethodOption {
return func(r *request) {
r.params["can_manage_chat"] = true
}
}
// CanManageVoiceChats option function
// Deprecated
func CanManageVoiceChats() MethodOption {
return func(r *request) {
r.params["can_manage_voice_chats"] = true
}
}
// CanManageVideoChats option function
func CanManageVideoChats() MethodOption {
return func(r *request) {
r.params["can_manage_video_chats"] = true
}
}
// RevokeMessages option function
func RevokeMessages() MethodOption {
return func(r *request) {
r.params["revoke_messages"] = true
}
}
// SetPayload option function
func SetPayload(v string) MethodOption {
return func(r *request) {
r.params["payload"] = v
}
}
// SetProviderToken option function
func SetProviderToken(v string) MethodOption {
return func(r *request) {
r.params["provider_token"] = v
}
}
// SetCurrency option function
func SetCurrency(v Currency) MethodOption {
return func(r *request) {
r.params["currency"] = v
}
}
// SetPrices option function
func SetPrices(v ...LabeledPrice) MethodOption {
return func(r *request) {
r.params["prices"] = v
}
}
// SetMaxTipAmount option function
func SetMaxTipAmount(v int) MethodOption {
return func(r *request) {
r.params["max_tip_amount"] = v
}
}
// SetSuggestedTipAmounts option function
func SetSuggestedTipAmounts(v ...int) MethodOption {
return func(r *request) {
r.params["suggested_tip_amounts"] = v
}
}
// SetStartParameter option function
func SetStartParameter(v string) MethodOption {
return func(r *request) {
r.params["start_parameter"] = v
}
}
// SetProviderData option function
func SetProviderData(v string) MethodOption {
return func(r *request) {
r.params["provider_data"] = v
}
}
// SetPhotoURL option function
func SetPhotoURL(v string) MethodOption {
return func(r *request) {
r.params["photo_url"] = v
}
}
// SetPhotoSize option function
func SetPhotoSize(v int) MethodOption {
return func(r *request) {
r.params["photo_size"] = v
}
}
// SetPhotoWidth option function
func SetPhotoWidth(v int) MethodOption {
return func(r *request) {
r.params["photo_width"] = v
}
}
// SetPhotoHeight option function
func SetPhotoHeight(v int) MethodOption {
return func(r *request) {