-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgen_helpers.go
More file actions
1969 lines (1575 loc) · 93 KB
/
gen_helpers.go
File metadata and controls
1969 lines (1575 loc) · 93 KB
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
// THIS FILE IS AUTOGENERATED. DO NOT EDIT.
// Regen by running 'go generate' in the repo root.
package gotdbot
// AddMember is a helper method for Client.AddChatMember
func (c *Chat) AddMember(client *Client, forwardLimit int32, userId int64) (*FailedToAddMembers, error) {
return client.AddChatMember(c.Id, forwardLimit, userId)
}
// AddMembers is a helper method for Client.AddChatMembers
func (c *Chat) AddMembers(client *Client, userIds []int64) (*FailedToAddMembers, error) {
return client.AddChatMembers(c.Id, userIds)
}
// AddToList is a helper method for Client.AddChatToList
func (c *Chat) AddToList(client *Client, chatList ChatList) error {
return client.AddChatToList(c.Id, chatList)
}
// AddChecklistTasks is a helper method for Client.AddChecklistTasks
func (c *Chat) AddChecklistTasks(client *Client, messageId int64, tasks []InputChecklistTask) error {
return client.AddChecklistTasks(c.Id, messageId, tasks)
}
// AddFileToDownloads is a helper method for Client.AddFileToDownloads
func (c *Chat) AddFileToDownloads(client *Client, fileId int32, messageId int64, priority int32) (*File, error) {
return client.AddFileToDownloads(c.Id, fileId, messageId, priority)
}
// AddLocalMessage is a helper method for Client.AddLocalMessage
func (c *Chat) AddLocalMessage(client *Client, inputMessageContent InputMessageContent, senderId MessageSender, opts *AddLocalMessageOpts) (*Message, error) {
return client.AddLocalMessage(c.Id, inputMessageContent, senderId, opts)
}
// AddMessageReaction is a helper method for Client.AddMessageReaction
func (c *Chat) AddMessageReaction(client *Client, messageId int64, reactionType ReactionType, opts *AddMessageReactionOpts) error {
return client.AddMessageReaction(c.Id, messageId, reactionType, opts)
}
// AddOffer is a helper method for Client.AddOffer
func (c *Chat) AddOffer(client *Client, messageId int64, options *MessageSendOptions) (*Message, error) {
return client.AddOffer(c.Id, messageId, options)
}
// AddPendingPaidMessageReaction is a helper method for Client.AddPendingPaidMessageReaction
func (c *Chat) AddPendingPaidMessageReaction(client *Client, messageId int64, starCount int64, opts *AddPendingPaidMessageReactionOpts) error {
return client.AddPendingPaidMessageReaction(c.Id, messageId, starCount, opts)
}
// AddRecentlyFound is a helper method for Client.AddRecentlyFoundChat
func (c *Chat) AddRecentlyFound(client *Client) error {
return client.AddRecentlyFoundChat(c.Id)
}
// AddStoryAlbumStories is a helper method for Client.AddStoryAlbumStories
func (c *Chat) AddStoryAlbumStories(client *Client, storyAlbumId int32, storyIds []int32) (*StoryAlbum, error) {
return client.AddStoryAlbumStories(c.Id, storyAlbumId, storyIds)
}
// ApproveSuggestedPost is a helper method for Client.ApproveSuggestedPost
func (c *Chat) ApproveSuggestedPost(client *Client, messageId int64, sendDate int32) error {
return client.ApproveSuggestedPost(c.Id, messageId, sendDate)
}
// BanMember is a helper method for Client.BanChatMember
func (c *Chat) BanMember(client *Client, bannedUntilDate int32, memberId MessageSender, opts *BanChatMemberOpts) error {
return client.BanChatMember(bannedUntilDate, c.Id, memberId, opts)
}
// Boost is a helper method for Client.BoostChat
func (c *Chat) Boost(client *Client, slotIds []int32) (*ChatBoostSlots, error) {
return client.BoostChat(c.Id, slotIds)
}
// CanPostStory is a helper method for Client.CanPostStory
func (c *Chat) CanPostStory(client *Client) (CanPostStoryResult, error) {
return client.CanPostStory(c.Id)
}
// CheckUsername is a helper method for Client.CheckChatUsername
func (c *Chat) CheckUsername(client *Client, username string) (CheckChatUsernameResult, error) {
return client.CheckChatUsername(c.Id, username)
}
// ClickAnimatedEmojiMessage is a helper method for Client.ClickAnimatedEmojiMessage
func (c *Chat) ClickAnimatedEmojiMessage(client *Client, messageId int64) (*Sticker, error) {
return client.ClickAnimatedEmojiMessage(c.Id, messageId)
}
// ClickSponsoredMessage is a helper method for Client.ClickChatSponsoredMessage
func (c *Chat) ClickSponsoredMessage(client *Client, messageId int64, opts *ClickChatSponsoredMessageOpts) error {
return client.ClickChatSponsoredMessage(c.Id, messageId, opts)
}
// Close is a helper method for Client.CloseChat
func (c *Chat) Close(client *Client) error {
return client.CloseChat(c.Id)
}
// CommitPendingPaidMessageReactions is a helper method for Client.CommitPendingPaidMessageReactions
func (c *Chat) CommitPendingPaidMessageReactions(client *Client, messageId int64) error {
return client.CommitPendingPaidMessageReactions(c.Id, messageId)
}
// CreateInviteLink is a helper method for Client.CreateChatInviteLink
func (c *Chat) CreateInviteLink(client *Client, expirationDate int32, memberLimit int32, name string, opts *CreateChatInviteLinkOpts) (*ChatInviteLink, error) {
return client.CreateChatInviteLink(c.Id, expirationDate, memberLimit, name, opts)
}
// CreateSubscriptionInviteLink is a helper method for Client.CreateChatSubscriptionInviteLink
func (c *Chat) CreateSubscriptionInviteLink(client *Client, name string, subscriptionPricing *StarSubscriptionPricing) (*ChatInviteLink, error) {
return client.CreateChatSubscriptionInviteLink(c.Id, name, subscriptionPricing)
}
// CreateForumTopic is a helper method for Client.CreateForumTopic
func (c *Chat) CreateForumTopic(client *Client, icon *ForumTopicIcon, name string, opts *CreateForumTopicOpts) (*ForumTopicInfo, error) {
return client.CreateForumTopic(c.Id, icon, name, opts)
}
// CreateVideo is a helper method for Client.CreateVideoChat
func (c *Chat) CreateVideo(client *Client, startDate int32, opts *CreateVideoChatOpts) (*GroupCallId, error) {
return client.CreateVideoChat(c.Id, startDate, c.Title, opts)
}
// DeclineGroupCallInvitation is a helper method for Client.DeclineGroupCallInvitation
func (c *Chat) DeclineGroupCallInvitation(client *Client, messageId int64) error {
return client.DeclineGroupCallInvitation(c.Id, messageId)
}
// DeclineSuggestedPost is a helper method for Client.DeclineSuggestedPost
func (c *Chat) DeclineSuggestedPost(client *Client, comment string, messageId int64) error {
return client.DeclineSuggestedPost(c.Id, comment, messageId)
}
// DeleteAllRevokedInviteLinks is a helper method for Client.DeleteAllRevokedChatInviteLinks
func (c *Chat) DeleteAllRevokedInviteLinks(client *Client, creatorUserId int64) error {
return client.DeleteAllRevokedChatInviteLinks(c.Id, creatorUserId)
}
// Delete is a helper method for Client.DeleteChat
func (c *Chat) Delete(client *Client) error {
return client.DeleteChat(c.Id)
}
// DeleteBackground is a helper method for Client.DeleteChatBackground
func (c *Chat) DeleteBackground(client *Client, opts *DeleteChatBackgroundOpts) error {
return client.DeleteChatBackground(c.Id, opts)
}
// DeleteHistory is a helper method for Client.DeleteChatHistory
func (c *Chat) DeleteHistory(client *Client, opts *DeleteChatHistoryOpts) error {
return client.DeleteChatHistory(c.Id, opts)
}
// DeleteMessagesByDate is a helper method for Client.DeleteChatMessagesByDate
func (c *Chat) DeleteMessagesByDate(client *Client, maxDate int32, minDate int32, opts *DeleteChatMessagesByDateOpts) error {
return client.DeleteChatMessagesByDate(c.Id, maxDate, minDate, opts)
}
// DeleteMessagesBySender is a helper method for Client.DeleteChatMessagesBySender
func (c *Chat) DeleteMessagesBySender(client *Client, senderId MessageSender) error {
return client.DeleteChatMessagesBySender(c.Id, senderId)
}
// DeleteReplyMarkup is a helper method for Client.DeleteChatReplyMarkup
func (c *Chat) DeleteReplyMarkup(client *Client, messageId int64) error {
return client.DeleteChatReplyMarkup(c.Id, messageId)
}
// DeleteDirectMessagesTopicHistory is a helper method for Client.DeleteDirectMessagesChatTopicHistory
func (c *Chat) DeleteDirectMessagesTopicHistory(client *Client, topicId int64) error {
return client.DeleteDirectMessagesChatTopicHistory(c.Id, topicId)
}
// DeleteDirectMessagesTopicMessagesByDate is a helper method for Client.DeleteDirectMessagesChatTopicMessagesByDate
func (c *Chat) DeleteDirectMessagesTopicMessagesByDate(client *Client, maxDate int32, minDate int32, topicId int64) error {
return client.DeleteDirectMessagesChatTopicMessagesByDate(c.Id, maxDate, minDate, topicId)
}
// DeleteForumTopic is a helper method for Client.DeleteForumTopic
func (c *Chat) DeleteForumTopic(client *Client, forumTopicId int32) error {
return client.DeleteForumTopic(c.Id, forumTopicId)
}
// DeleteMessages is a helper method for Client.DeleteMessages
func (c *Chat) DeleteMessages(client *Client, messageIds []int64, opts *DeleteMessagesOpts) error {
return client.DeleteMessages(c.Id, messageIds, opts)
}
// DeleteRevokedInviteLink is a helper method for Client.DeleteRevokedChatInviteLink
func (c *Chat) DeleteRevokedInviteLink(client *Client, inviteLink string) error {
return client.DeleteRevokedChatInviteLink(c.Id, inviteLink)
}
// DeleteStoryAlbum is a helper method for Client.DeleteStoryAlbum
func (c *Chat) DeleteStoryAlbum(client *Client, storyAlbumId int32) error {
return client.DeleteStoryAlbum(c.Id, storyAlbumId)
}
// EditBusinessMessageCaption is a helper method for Client.EditBusinessMessageCaption
func (c *Chat) EditBusinessMessageCaption(client *Client, businessConnectionId string, messageId int64, opts *EditBusinessMessageCaptionOpts) (*BusinessMessage, error) {
return client.EditBusinessMessageCaption(businessConnectionId, c.Id, messageId, opts)
}
// EditBusinessMessageChecklist is a helper method for Client.EditBusinessMessageChecklist
func (c *Chat) EditBusinessMessageChecklist(client *Client, businessConnectionId string, checklist *InputChecklist, messageId int64, opts *EditBusinessMessageChecklistOpts) (*BusinessMessage, error) {
return client.EditBusinessMessageChecklist(businessConnectionId, c.Id, checklist, messageId, opts)
}
// EditBusinessMessageLiveLocation is a helper method for Client.EditBusinessMessageLiveLocation
func (c *Chat) EditBusinessMessageLiveLocation(client *Client, businessConnectionId string, heading int32, livePeriod int32, messageId int64, proximityAlertRadius int32, opts *EditBusinessMessageLiveLocationOpts) (*BusinessMessage, error) {
return client.EditBusinessMessageLiveLocation(businessConnectionId, c.Id, heading, livePeriod, messageId, proximityAlertRadius, opts)
}
// EditBusinessMessageMedia is a helper method for Client.EditBusinessMessageMedia
func (c *Chat) EditBusinessMessageMedia(client *Client, businessConnectionId string, inputMessageContent InputMessageContent, messageId int64, opts *EditBusinessMessageMediaOpts) (*BusinessMessage, error) {
return client.EditBusinessMessageMedia(businessConnectionId, c.Id, inputMessageContent, messageId, opts)
}
// EditBusinessMessageReplyMarkup is a helper method for Client.EditBusinessMessageReplyMarkup
func (c *Chat) EditBusinessMessageReplyMarkup(client *Client, businessConnectionId string, messageId int64, opts *EditBusinessMessageReplyMarkupOpts) (*BusinessMessage, error) {
return client.EditBusinessMessageReplyMarkup(businessConnectionId, c.Id, messageId, opts)
}
// EditBusinessMessageText is a helper method for Client.EditBusinessMessageText
func (c *Chat) EditBusinessMessageText(client *Client, businessConnectionId string, inputMessageContent InputMessageContent, messageId int64, opts *EditBusinessMessageTextOpts) (*BusinessMessage, error) {
return client.EditBusinessMessageText(businessConnectionId, c.Id, inputMessageContent, messageId, opts)
}
// EditInviteLink is a helper method for Client.EditChatInviteLink
func (c *Chat) EditInviteLink(client *Client, expirationDate int32, inviteLink string, memberLimit int32, name string, opts *EditChatInviteLinkOpts) (*ChatInviteLink, error) {
return client.EditChatInviteLink(c.Id, expirationDate, inviteLink, memberLimit, name, opts)
}
// EditSubscriptionInviteLink is a helper method for Client.EditChatSubscriptionInviteLink
func (c *Chat) EditSubscriptionInviteLink(client *Client, inviteLink string, name string) (*ChatInviteLink, error) {
return client.EditChatSubscriptionInviteLink(c.Id, inviteLink, name)
}
// EditForumTopic is a helper method for Client.EditForumTopic
func (c *Chat) EditForumTopic(client *Client, forumTopicId int32, iconCustomEmojiId int64, name string, opts *EditForumTopicOpts) error {
return client.EditForumTopic(c.Id, forumTopicId, iconCustomEmojiId, name, opts)
}
// EditMessageCaption is a helper method for Client.EditMessageCaption
func (c *Chat) EditMessageCaption(client *Client, messageId int64, opts *EditMessageCaptionOpts) (*Message, error) {
return client.EditMessageCaption(c.Id, messageId, opts)
}
// EditMessageChecklist is a helper method for Client.EditMessageChecklist
func (c *Chat) EditMessageChecklist(client *Client, checklist *InputChecklist, messageId int64, opts *EditMessageChecklistOpts) (*Message, error) {
return client.EditMessageChecklist(c.Id, checklist, messageId, opts)
}
// EditMessageLiveLocation is a helper method for Client.EditMessageLiveLocation
func (c *Chat) EditMessageLiveLocation(client *Client, heading int32, livePeriod int32, messageId int64, proximityAlertRadius int32, opts *EditMessageLiveLocationOpts) (*Message, error) {
return client.EditMessageLiveLocation(c.Id, heading, livePeriod, messageId, proximityAlertRadius, opts)
}
// EditMessageMedia is a helper method for Client.EditMessageMedia
func (c *Chat) EditMessageMedia(client *Client, inputMessageContent InputMessageContent, messageId int64, opts *EditMessageMediaOpts) (*Message, error) {
return client.EditMessageMedia(c.Id, inputMessageContent, messageId, opts)
}
// EditMessageReplyMarkup is a helper method for Client.EditMessageReplyMarkup
func (c *Chat) EditMessageReplyMarkup(client *Client, messageId int64, opts *EditMessageReplyMarkupOpts) (*Message, error) {
return client.EditMessageReplyMarkup(c.Id, messageId, opts)
}
// EditMessageSchedulingState is a helper method for Client.EditMessageSchedulingState
func (c *Chat) EditMessageSchedulingState(client *Client, messageId int64, opts *EditMessageSchedulingStateOpts) error {
return client.EditMessageSchedulingState(c.Id, messageId, opts)
}
// EditMessageText is a helper method for Client.EditMessageText
func (c *Chat) EditMessageText(client *Client, inputMessageContent InputMessageContent, messageId int64, opts *EditMessageTextOpts) (*Message, error) {
return client.EditMessageText(c.Id, inputMessageContent, messageId, opts)
}
// ForwardMessages is a helper method for Client.ForwardMessages
func (c *Chat) ForwardMessages(client *Client, fromChatId int64, messageIds []int64, opts *ForwardMessagesOpts) (*Messages, error) {
return client.ForwardMessages(c.Id, fromChatId, messageIds, opts)
}
// GetAllStickerEmojis is a helper method for Client.GetAllStickerEmojis
func (c *Chat) GetAllStickerEmojis(client *Client, query string, stickerType StickerType, opts *GetAllStickerEmojisOpts) (*Emojis, error) {
return client.GetAllStickerEmojis(c.Id, query, stickerType, opts)
}
// GetCallbackQueryAnswer is a helper method for Client.GetCallbackQueryAnswer
func (c *Chat) GetCallbackQueryAnswer(client *Client, messageId int64, payload CallbackQueryPayload) (*CallbackQueryAnswer, error) {
return client.GetCallbackQueryAnswer(c.Id, messageId, payload)
}
// GetCallbackQueryMessage is a helper method for Client.GetCallbackQueryMessage
func (c *Chat) GetCallbackQueryMessage(client *Client, callbackQueryId int64, messageId int64) (*Message, error) {
return client.GetCallbackQueryMessage(callbackQueryId, c.Id, messageId)
}
// Get is a helper method for Client.GetChat
func (c *Chat) Get(client *Client) (*Chat, error) {
return client.GetChat(c.Id)
}
// GetActiveStories is a helper method for Client.GetChatActiveStories
func (c *Chat) GetActiveStories(client *Client) (*ChatActiveStories, error) {
return client.GetChatActiveStories(c.Id)
}
// GetAdministrators is a helper method for Client.GetChatAdministrators
func (c *Chat) GetAdministrators(client *Client) (*ChatAdministrators, error) {
return client.GetChatAdministrators(c.Id)
}
// GetArchivedStories is a helper method for Client.GetChatArchivedStories
func (c *Chat) GetArchivedStories(client *Client, fromStoryId int32, limit int32) (*Stories, error) {
return client.GetChatArchivedStories(c.Id, fromStoryId, limit)
}
// GetAvailableMessageSenders is a helper method for Client.GetChatAvailableMessageSenders
func (c *Chat) GetAvailableMessageSenders(client *Client) (*ChatMessageSenders, error) {
return client.GetChatAvailableMessageSenders(c.Id)
}
// GetAvailablePaidMessageReactionSenders is a helper method for Client.GetChatAvailablePaidMessageReactionSenders
func (c *Chat) GetAvailablePaidMessageReactionSenders(client *Client) (*MessageSenders, error) {
return client.GetChatAvailablePaidMessageReactionSenders(c.Id)
}
// GetBoostLink is a helper method for Client.GetChatBoostLink
func (c *Chat) GetBoostLink(client *Client) (*ChatBoostLink, error) {
return client.GetChatBoostLink(c.Id)
}
// GetBoosts is a helper method for Client.GetChatBoosts
func (c *Chat) GetBoosts(client *Client, limit int32, offset string, opts *GetChatBoostsOpts) (*FoundChatBoosts, error) {
return client.GetChatBoosts(c.Id, limit, offset, opts)
}
// GetBoostStatus is a helper method for Client.GetChatBoostStatus
func (c *Chat) GetBoostStatus(client *Client) (*ChatBoostStatus, error) {
return client.GetChatBoostStatus(c.Id)
}
// GetEventLog is a helper method for Client.GetChatEventLog
func (c *Chat) GetEventLog(client *Client, fromEventId int64, limit int32, query string, userIds []int64, opts *GetChatEventLogOpts) (*ChatEvents, error) {
return client.GetChatEventLog(c.Id, fromEventId, limit, query, userIds, opts)
}
// GetHistory is a helper method for Client.GetChatHistory
func (c *Chat) GetHistory(client *Client, fromMessageId int64, limit int32, offset int32, opts *GetChatHistoryOpts) (*Messages, error) {
return client.GetChatHistory(c.Id, fromMessageId, limit, offset, opts)
}
// GetInviteLink is a helper method for Client.GetChatInviteLink
func (c *Chat) GetInviteLink(client *Client, inviteLink string) (*ChatInviteLink, error) {
return client.GetChatInviteLink(c.Id, inviteLink)
}
// GetInviteLinkCounts is a helper method for Client.GetChatInviteLinkCounts
func (c *Chat) GetInviteLinkCounts(client *Client) (*ChatInviteLinkCounts, error) {
return client.GetChatInviteLinkCounts(c.Id)
}
// GetInviteLinkMembers is a helper method for Client.GetChatInviteLinkMembers
func (c *Chat) GetInviteLinkMembers(client *Client, inviteLink string, limit int32, opts *GetChatInviteLinkMembersOpts) (*ChatInviteLinkMembers, error) {
return client.GetChatInviteLinkMembers(c.Id, inviteLink, limit, opts)
}
// GetInviteLinks is a helper method for Client.GetChatInviteLinks
func (c *Chat) GetInviteLinks(client *Client, creatorUserId int64, limit int32, offsetDate int32, offsetInviteLink string, opts *GetChatInviteLinksOpts) (*ChatInviteLinks, error) {
return client.GetChatInviteLinks(c.Id, creatorUserId, limit, offsetDate, offsetInviteLink, opts)
}
// GetJoinRequests is a helper method for Client.GetChatJoinRequests
func (c *Chat) GetJoinRequests(client *Client, inviteLink string, limit int32, query string, opts *GetChatJoinRequestsOpts) (*ChatJoinRequests, error) {
return client.GetChatJoinRequests(c.Id, inviteLink, limit, query, opts)
}
// GetListsToAddChat is a helper method for Client.GetChatListsToAddChat
func (c *Chat) GetListsToAddChat(client *Client) (*ChatLists, error) {
return client.GetChatListsToAddChat(c.Id)
}
// GetMember is a helper method for Client.GetChatMember
func (c *Chat) GetMember(client *Client, memberId MessageSender) (*ChatMember, error) {
return client.GetChatMember(c.Id, memberId)
}
// GetMessageByDate is a helper method for Client.GetChatMessageByDate
func (c *Chat) GetMessageByDate(client *Client, date int32) (*Message, error) {
return client.GetChatMessageByDate(c.Id, date)
}
// GetMessageCalendar is a helper method for Client.GetChatMessageCalendar
func (c *Chat) GetMessageCalendar(client *Client, filter SearchMessagesFilter, fromMessageId int64, opts *GetChatMessageCalendarOpts) (*MessageCalendar, error) {
return client.GetChatMessageCalendar(c.Id, filter, fromMessageId, opts)
}
// GetMessageCount is a helper method for Client.GetChatMessageCount
func (c *Chat) GetMessageCount(client *Client, filter SearchMessagesFilter, opts *GetChatMessageCountOpts) (*Count, error) {
return client.GetChatMessageCount(c.Id, filter, opts)
}
// GetMessagePosition is a helper method for Client.GetChatMessagePosition
func (c *Chat) GetMessagePosition(client *Client, filter SearchMessagesFilter, messageId int64, opts *GetChatMessagePositionOpts) (*Count, error) {
return client.GetChatMessagePosition(c.Id, filter, messageId, opts)
}
// GetOwnerAfterLeaving is a helper method for Client.GetChatOwnerAfterLeaving
func (c *Chat) GetOwnerAfterLeaving(client *Client) (*User, error) {
return client.GetChatOwnerAfterLeaving(c.Id)
}
// GetPinnedMessage is a helper method for Client.GetChatPinnedMessage
func (c *Chat) GetPinnedMessage(client *Client) (*Message, error) {
return client.GetChatPinnedMessage(c.Id)
}
// GetPostedToChatPageStories is a helper method for Client.GetChatPostedToChatPageStories
func (c *Chat) GetPostedToChatPageStories(client *Client, fromStoryId int32, limit int32) (*Stories, error) {
return client.GetChatPostedToChatPageStories(c.Id, fromStoryId, limit)
}
// GetRevenueStatistics is a helper method for Client.GetChatRevenueStatistics
func (c *Chat) GetRevenueStatistics(client *Client, opts *GetChatRevenueStatisticsOpts) (*ChatRevenueStatistics, error) {
return client.GetChatRevenueStatistics(c.Id, opts)
}
// GetRevenueTransactions is a helper method for Client.GetChatRevenueTransactions
func (c *Chat) GetRevenueTransactions(client *Client, limit int32, offset string) (*ChatRevenueTransactions, error) {
return client.GetChatRevenueTransactions(c.Id, limit, offset)
}
// GetRevenueWithdrawalUrl is a helper method for Client.GetChatRevenueWithdrawalUrl
func (c *Chat) GetRevenueWithdrawalUrl(client *Client, password string) (*HttpUrl, error) {
return client.GetChatRevenueWithdrawalUrl(c.Id, password)
}
// GetScheduledMessages is a helper method for Client.GetChatScheduledMessages
func (c *Chat) GetScheduledMessages(client *Client) (*Messages, error) {
return client.GetChatScheduledMessages(c.Id)
}
// GetSimilarChatCount is a helper method for Client.GetChatSimilarChatCount
func (c *Chat) GetSimilarChatCount(client *Client, opts *GetChatSimilarChatCountOpts) (*Count, error) {
return client.GetChatSimilarChatCount(c.Id, opts)
}
// GetSimilarChats is a helper method for Client.GetChatSimilarChats
func (c *Chat) GetSimilarChats(client *Client) (*Chats, error) {
return client.GetChatSimilarChats(c.Id)
}
// GetSparseMessagePositions is a helper method for Client.GetChatSparseMessagePositions
func (c *Chat) GetSparseMessagePositions(client *Client, filter SearchMessagesFilter, fromMessageId int64, limit int32, savedMessagesTopicId int64) (*MessagePositions, error) {
return client.GetChatSparseMessagePositions(c.Id, filter, fromMessageId, limit, savedMessagesTopicId)
}
// GetSponsoredMessages is a helper method for Client.GetChatSponsoredMessages
func (c *Chat) GetSponsoredMessages(client *Client) (*SponsoredMessages, error) {
return client.GetChatSponsoredMessages(c.Id)
}
// GetStatistics is a helper method for Client.GetChatStatistics
func (c *Chat) GetStatistics(client *Client, opts *GetChatStatisticsOpts) (ChatStatistics, error) {
return client.GetChatStatistics(c.Id, opts)
}
// GetStoryAlbums is a helper method for Client.GetChatStoryAlbums
func (c *Chat) GetStoryAlbums(client *Client) (*StoryAlbums, error) {
return client.GetChatStoryAlbums(c.Id)
}
// GetDirectMessagesTopic is a helper method for Client.GetDirectMessagesChatTopic
func (c *Chat) GetDirectMessagesTopic(client *Client, topicId int64) (*DirectMessagesChatTopic, error) {
return client.GetDirectMessagesChatTopic(c.Id, topicId)
}
// GetDirectMessagesTopicHistory is a helper method for Client.GetDirectMessagesChatTopicHistory
func (c *Chat) GetDirectMessagesTopicHistory(client *Client, fromMessageId int64, limit int32, offset int32, topicId int64) (*Messages, error) {
return client.GetDirectMessagesChatTopicHistory(c.Id, fromMessageId, limit, offset, topicId)
}
// GetDirectMessagesTopicMessageByDate is a helper method for Client.GetDirectMessagesChatTopicMessageByDate
func (c *Chat) GetDirectMessagesTopicMessageByDate(client *Client, date int32, topicId int64) (*Message, error) {
return client.GetDirectMessagesChatTopicMessageByDate(c.Id, date, topicId)
}
// GetDirectMessagesTopicRevenue is a helper method for Client.GetDirectMessagesChatTopicRevenue
func (c *Chat) GetDirectMessagesTopicRevenue(client *Client, topicId int64) (*StarCount, error) {
return client.GetDirectMessagesChatTopicRevenue(c.Id, topicId)
}
// GetForumTopic is a helper method for Client.GetForumTopic
func (c *Chat) GetForumTopic(client *Client, forumTopicId int32) (*ForumTopic, error) {
return client.GetForumTopic(c.Id, forumTopicId)
}
// GetForumTopicHistory is a helper method for Client.GetForumTopicHistory
func (c *Chat) GetForumTopicHistory(client *Client, forumTopicId int32, fromMessageId int64, limit int32, offset int32) (*Messages, error) {
return client.GetForumTopicHistory(c.Id, forumTopicId, fromMessageId, limit, offset)
}
// GetForumTopicLink is a helper method for Client.GetForumTopicLink
func (c *Chat) GetForumTopicLink(client *Client, forumTopicId int32) (*MessageLink, error) {
return client.GetForumTopicLink(c.Id, forumTopicId)
}
// GetForumTopics is a helper method for Client.GetForumTopics
func (c *Chat) GetForumTopics(client *Client, limit int32, offsetDate int32, offsetForumTopicId int32, offsetMessageId int64, query string) (*ForumTopics, error) {
return client.GetForumTopics(c.Id, limit, offsetDate, offsetForumTopicId, offsetMessageId, query)
}
// GetGameHighScores is a helper method for Client.GetGameHighScores
func (c *Chat) GetGameHighScores(client *Client, messageId int64, userId int64) (*GameHighScores, error) {
return client.GetGameHighScores(c.Id, messageId, userId)
}
// GetGiveawayInfo is a helper method for Client.GetGiveawayInfo
func (c *Chat) GetGiveawayInfo(client *Client, messageId int64) (GiveawayInfo, error) {
return client.GetGiveawayInfo(c.Id, messageId)
}
// GetInlineQueryResults is a helper method for Client.GetInlineQueryResults
func (c *Chat) GetInlineQueryResults(client *Client, botUserId int64, offset string, query string, opts *GetInlineQueryResultsOpts) (*InlineQueryResults, error) {
return client.GetInlineQueryResults(botUserId, c.Id, offset, query, opts)
}
// GetLiveStoryRtmpUrl is a helper method for Client.GetLiveStoryRtmpUrl
func (c *Chat) GetLiveStoryRtmpUrl(client *Client) (*RtmpUrl, error) {
return client.GetLiveStoryRtmpUrl(c.Id)
}
// GetLoginUrl is a helper method for Client.GetLoginUrl
func (c *Chat) GetLoginUrl(client *Client, buttonId int64, messageId int64, opts *GetLoginUrlOpts) (*HttpUrl, error) {
return client.GetLoginUrl(buttonId, c.Id, messageId, opts)
}
// GetLoginUrlInfo is a helper method for Client.GetLoginUrlInfo
func (c *Chat) GetLoginUrlInfo(client *Client, buttonId int64, messageId int64) (LoginUrlInfo, error) {
return client.GetLoginUrlInfo(buttonId, c.Id, messageId)
}
// GetMainWebApp is a helper method for Client.GetMainWebApp
func (c *Chat) GetMainWebApp(client *Client, botUserId int64, parameters *WebAppOpenParameters, startParameter string) (*MainWebApp, error) {
return client.GetMainWebApp(botUserId, c.Id, parameters, startParameter)
}
// GetMapThumbnailFile is a helper method for Client.GetMapThumbnailFile
func (c *Chat) GetMapThumbnailFile(client *Client, height int32, location *Location, scale int32, width int32, zoom int32) (*File, error) {
return client.GetMapThumbnailFile(c.Id, height, location, scale, width, zoom)
}
// GetMessage is a helper method for Client.GetMessage
func (c *Chat) GetMessage(client *Client, messageId int64) (*Message, error) {
return client.GetMessage(c.Id, messageId)
}
// GetMessageAddedReactions is a helper method for Client.GetMessageAddedReactions
func (c *Chat) GetMessageAddedReactions(client *Client, limit int32, messageId int64, offset string, opts *GetMessageAddedReactionsOpts) (*AddedReactions, error) {
return client.GetMessageAddedReactions(c.Id, limit, messageId, offset, opts)
}
// GetMessageAuthor is a helper method for Client.GetMessageAuthor
func (c *Chat) GetMessageAuthor(client *Client, messageId int64) (*User, error) {
return client.GetMessageAuthor(c.Id, messageId)
}
// GetMessageAvailableReactions is a helper method for Client.GetMessageAvailableReactions
func (c *Chat) GetMessageAvailableReactions(client *Client, messageId int64, rowSize int32) (*AvailableReactions, error) {
return client.GetMessageAvailableReactions(c.Id, messageId, rowSize)
}
// GetMessageEmbeddingCode is a helper method for Client.GetMessageEmbeddingCode
func (c *Chat) GetMessageEmbeddingCode(client *Client, messageId int64, opts *GetMessageEmbeddingCodeOpts) (*Text, error) {
return client.GetMessageEmbeddingCode(c.Id, messageId, opts)
}
// GetMessageImportConfirmationText is a helper method for Client.GetMessageImportConfirmationText
func (c *Chat) GetMessageImportConfirmationText(client *Client) (*Text, error) {
return client.GetMessageImportConfirmationText(c.Id)
}
// GetMessageLink is a helper method for Client.GetMessageLink
func (c *Chat) GetMessageLink(client *Client, mediaTimestamp int32, messageId int64, opts *GetMessageLinkOpts) (*MessageLink, error) {
return client.GetMessageLink(c.Id, mediaTimestamp, messageId, opts)
}
// GetMessageLocally is a helper method for Client.GetMessageLocally
func (c *Chat) GetMessageLocally(client *Client, messageId int64) (*Message, error) {
return client.GetMessageLocally(c.Id, messageId)
}
// GetMessageProperties is a helper method for Client.GetMessageProperties
func (c *Chat) GetMessageProperties(client *Client, messageId int64) (*MessageProperties, error) {
return client.GetMessageProperties(c.Id, messageId)
}
// GetMessagePublicForwards is a helper method for Client.GetMessagePublicForwards
func (c *Chat) GetMessagePublicForwards(client *Client, limit int32, messageId int64, offset string) (*PublicForwards, error) {
return client.GetMessagePublicForwards(c.Id, limit, messageId, offset)
}
// GetMessageReadDate is a helper method for Client.GetMessageReadDate
func (c *Chat) GetMessageReadDate(client *Client, messageId int64) (MessageReadDate, error) {
return client.GetMessageReadDate(c.Id, messageId)
}
// GetMessages is a helper method for Client.GetMessages
func (c *Chat) GetMessages(client *Client, messageIds []int64) (*Messages, error) {
return client.GetMessages(c.Id, messageIds)
}
// GetMessageStatistics is a helper method for Client.GetMessageStatistics
func (c *Chat) GetMessageStatistics(client *Client, messageId int64, opts *GetMessageStatisticsOpts) (*MessageStatistics, error) {
return client.GetMessageStatistics(c.Id, messageId, opts)
}
// GetMessageThread is a helper method for Client.GetMessageThread
func (c *Chat) GetMessageThread(client *Client, messageId int64) (*MessageThreadInfo, error) {
return client.GetMessageThread(c.Id, messageId)
}
// GetMessageThreadHistory is a helper method for Client.GetMessageThreadHistory
func (c *Chat) GetMessageThreadHistory(client *Client, fromMessageId int64, limit int32, messageId int64, offset int32) (*Messages, error) {
return client.GetMessageThreadHistory(c.Id, fromMessageId, limit, messageId, offset)
}
// GetMessageViewers is a helper method for Client.GetMessageViewers
func (c *Chat) GetMessageViewers(client *Client, messageId int64) (*MessageViewers, error) {
return client.GetMessageViewers(c.Id, messageId)
}
// GetPaymentReceipt is a helper method for Client.GetPaymentReceipt
func (c *Chat) GetPaymentReceipt(client *Client, messageId int64) (*PaymentReceipt, error) {
return client.GetPaymentReceipt(c.Id, messageId)
}
// GetPollVoters is a helper method for Client.GetPollVoters
func (c *Chat) GetPollVoters(client *Client, limit int32, messageId int64, offset int32, optionId int32) (*PollVoters, error) {
return client.GetPollVoters(c.Id, limit, messageId, offset, optionId)
}
// GetRepliedMessage is a helper method for Client.GetRepliedMessage
func (c *Chat) GetRepliedMessage(client *Client, messageId int64) (*Message, error) {
return client.GetRepliedMessage(c.Id, messageId)
}
// GetStatisticalGraph is a helper method for Client.GetStatisticalGraph
func (c *Chat) GetStatisticalGraph(client *Client, token string, x int64) (StatisticalGraph, error) {
return client.GetStatisticalGraph(c.Id, token, x)
}
// GetStickers is a helper method for Client.GetStickers
func (c *Chat) GetStickers(client *Client, limit int32, query string, stickerType StickerType) (*Stickers, error) {
return client.GetStickers(c.Id, limit, query, stickerType)
}
// GetStoryAlbumStories is a helper method for Client.GetStoryAlbumStories
func (c *Chat) GetStoryAlbumStories(client *Client, limit int32, offset int32, storyAlbumId int32) (*Stories, error) {
return client.GetStoryAlbumStories(c.Id, limit, offset, storyAlbumId)
}
// GetStoryStatistics is a helper method for Client.GetStoryStatistics
func (c *Chat) GetStoryStatistics(client *Client, storyId int32, opts *GetStoryStatisticsOpts) (*StoryStatistics, error) {
return client.GetStoryStatistics(c.Id, storyId, opts)
}
// GetUserBoosts is a helper method for Client.GetUserChatBoosts
func (c *Chat) GetUserBoosts(client *Client, userId int64) (*FoundChatBoosts, error) {
return client.GetUserChatBoosts(c.Id, userId)
}
// GetVideoAvailableParticipants is a helper method for Client.GetVideoChatAvailableParticipants
func (c *Chat) GetVideoAvailableParticipants(client *Client) (*MessageSenders, error) {
return client.GetVideoChatAvailableParticipants(c.Id)
}
// GetVideoRtmpUrl is a helper method for Client.GetVideoChatRtmpUrl
func (c *Chat) GetVideoRtmpUrl(client *Client) (*RtmpUrl, error) {
return client.GetVideoChatRtmpUrl(c.Id)
}
// GetVideoMessageAdvertisements is a helper method for Client.GetVideoMessageAdvertisements
func (c *Chat) GetVideoMessageAdvertisements(client *Client, messageId int64) (*VideoMessageAdvertisements, error) {
return client.GetVideoMessageAdvertisements(c.Id, messageId)
}
// GetWebAppLinkUrl is a helper method for Client.GetWebAppLinkUrl
func (c *Chat) GetWebAppLinkUrl(client *Client, botUserId int64, parameters *WebAppOpenParameters, startParameter string, webAppShortName string, opts *GetWebAppLinkUrlOpts) (*HttpUrl, error) {
return client.GetWebAppLinkUrl(botUserId, c.Id, parameters, startParameter, webAppShortName, opts)
}
// ImportMessages is a helper method for Client.ImportMessages
func (c *Chat) ImportMessages(client *Client, attachedFiles []InputFile, messageFile InputFile) error {
return client.ImportMessages(attachedFiles, c.Id, messageFile)
}
// Join is a helper method for Client.JoinChat
func (c *Chat) Join(client *Client) error {
return client.JoinChat(c.Id)
}
// Leave is a helper method for Client.LeaveChat
func (c *Chat) Leave(client *Client) error {
return client.LeaveChat(c.Id)
}
// LoadDirectMessagesTopics is a helper method for Client.LoadDirectMessagesChatTopics
func (c *Chat) LoadDirectMessagesTopics(client *Client, limit int32) error {
return client.LoadDirectMessagesChatTopics(c.Id, limit)
}
// MarkChecklistTasksAsDone is a helper method for Client.MarkChecklistTasksAsDone
func (c *Chat) MarkChecklistTasksAsDone(client *Client, markedAsDoneTaskIds []int32, markedAsNotDoneTaskIds []int32, messageId int64) error {
return client.MarkChecklistTasksAsDone(c.Id, markedAsDoneTaskIds, markedAsNotDoneTaskIds, messageId)
}
// Open is a helper method for Client.OpenChat
func (c *Chat) Open(client *Client) error {
return client.OpenChat(c.Id)
}
// OpenSimilarChat is a helper method for Client.OpenChatSimilarChat
func (c *Chat) OpenSimilarChat(client *Client, openedChatId int64) error {
return client.OpenChatSimilarChat(c.Id, openedChatId)
}
// OpenMessageContent is a helper method for Client.OpenMessageContent
func (c *Chat) OpenMessageContent(client *Client, messageId int64) error {
return client.OpenMessageContent(c.Id, messageId)
}
// OpenWebApp is a helper method for Client.OpenWebApp
func (c *Chat) OpenWebApp(client *Client, botUserId int64, parameters *WebAppOpenParameters, url string, opts *OpenWebAppOpts) (*WebAppInfo, error) {
return client.OpenWebApp(botUserId, c.Id, parameters, url, opts)
}
// PinMessage is a helper method for Client.PinChatMessage
func (c *Chat) PinMessage(client *Client, messageId int64, opts *PinChatMessageOpts) error {
return client.PinChatMessage(c.Id, messageId, opts)
}
// PostStory is a helper method for Client.PostStory
func (c *Chat) PostStory(client *Client, activePeriod int32, albumIds []int32, content InputStoryContent, privacySettings StoryPrivacySettings, opts *PostStoryOpts) (*Story, error) {
return client.PostStory(activePeriod, albumIds, c.Id, content, privacySettings, opts)
}
// ProcessHasProtectedContentDisableRequest is a helper method for Client.ProcessChatHasProtectedContentDisableRequest
func (c *Chat) ProcessHasProtectedContentDisableRequest(client *Client, requestMessageId int64, opts *ProcessChatHasProtectedContentDisableRequestOpts) error {
return client.ProcessChatHasProtectedContentDisableRequest(c.Id, requestMessageId, opts)
}
// ProcessJoinRequest is a helper method for Client.ProcessChatJoinRequest
func (c *Chat) ProcessJoinRequest(client *Client, userId int64, opts *ProcessChatJoinRequestOpts) error {
return client.ProcessChatJoinRequest(c.Id, userId, opts)
}
// ProcessJoinRequests is a helper method for Client.ProcessChatJoinRequests
func (c *Chat) ProcessJoinRequests(client *Client, inviteLink string, opts *ProcessChatJoinRequestsOpts) error {
return client.ProcessChatJoinRequests(c.Id, inviteLink, opts)
}
// RateSpeechRecognition is a helper method for Client.RateSpeechRecognition
func (c *Chat) RateSpeechRecognition(client *Client, messageId int64, opts *RateSpeechRecognitionOpts) error {
return client.RateSpeechRecognition(c.Id, messageId, opts)
}
// ReadAllMentions is a helper method for Client.ReadAllChatMentions
func (c *Chat) ReadAllMentions(client *Client) error {
return client.ReadAllChatMentions(c.Id)
}
// ReadAllReactions is a helper method for Client.ReadAllChatReactions
func (c *Chat) ReadAllReactions(client *Client) error {
return client.ReadAllChatReactions(c.Id)
}
// ReadAllDirectMessagesTopicReactions is a helper method for Client.ReadAllDirectMessagesChatTopicReactions
func (c *Chat) ReadAllDirectMessagesTopicReactions(client *Client, topicId int64) error {
return client.ReadAllDirectMessagesChatTopicReactions(c.Id, topicId)
}
// ReadAllForumTopicMentions is a helper method for Client.ReadAllForumTopicMentions
func (c *Chat) ReadAllForumTopicMentions(client *Client, forumTopicId int32) error {
return client.ReadAllForumTopicMentions(c.Id, forumTopicId)
}
// ReadAllForumTopicReactions is a helper method for Client.ReadAllForumTopicReactions
func (c *Chat) ReadAllForumTopicReactions(client *Client, forumTopicId int32) error {
return client.ReadAllForumTopicReactions(c.Id, forumTopicId)
}
// ReadBusinessMessage is a helper method for Client.ReadBusinessMessage
func (c *Chat) ReadBusinessMessage(client *Client, businessConnectionId string, messageId int64) error {
return client.ReadBusinessMessage(businessConnectionId, c.Id, messageId)
}
// RecognizeSpeech is a helper method for Client.RecognizeSpeech
func (c *Chat) RecognizeSpeech(client *Client, messageId int64) error {
return client.RecognizeSpeech(c.Id, messageId)
}
// RemoveBusinessConnectedBotFrom is a helper method for Client.RemoveBusinessConnectedBotFromChat
func (c *Chat) RemoveBusinessConnectedBotFrom(client *Client) error {
return client.RemoveBusinessConnectedBotFromChat(c.Id)
}
// RemoveActionBar is a helper method for Client.RemoveChatActionBar
func (c *Chat) RemoveActionBar(client *Client) error {
return client.RemoveChatActionBar(c.Id)
}
// RemoveMessageReaction is a helper method for Client.RemoveMessageReaction
func (c *Chat) RemoveMessageReaction(client *Client, messageId int64, reactionType ReactionType) error {
return client.RemoveMessageReaction(c.Id, messageId, reactionType)
}
// RemovePendingPaidMessageReactions is a helper method for Client.RemovePendingPaidMessageReactions
func (c *Chat) RemovePendingPaidMessageReactions(client *Client, messageId int64) error {
return client.RemovePendingPaidMessageReactions(c.Id, messageId)
}
// RemoveRecentlyFound is a helper method for Client.RemoveRecentlyFoundChat
func (c *Chat) RemoveRecentlyFound(client *Client) error {
return client.RemoveRecentlyFoundChat(c.Id)
}
// RemoveStoryAlbumStories is a helper method for Client.RemoveStoryAlbumStories
func (c *Chat) RemoveStoryAlbumStories(client *Client, storyAlbumId int32, storyIds []int32) (*StoryAlbum, error) {
return client.RemoveStoryAlbumStories(c.Id, storyAlbumId, storyIds)
}
// RemoveTop is a helper method for Client.RemoveTopChat
func (c *Chat) RemoveTop(client *Client, category TopChatCategory) error {
return client.RemoveTopChat(category, c.Id)
}
// ReorderStoryAlbums is a helper method for Client.ReorderStoryAlbums
func (c *Chat) ReorderStoryAlbums(client *Client, storyAlbumIds []int32) error {
return client.ReorderStoryAlbums(c.Id, storyAlbumIds)
}
// ReorderStoryAlbumStories is a helper method for Client.ReorderStoryAlbumStories
func (c *Chat) ReorderStoryAlbumStories(client *Client, storyAlbumId int32, storyIds []int32) (*StoryAlbum, error) {
return client.ReorderStoryAlbumStories(c.Id, storyAlbumId, storyIds)
}
// ReplaceLiveStoryRtmpUrl is a helper method for Client.ReplaceLiveStoryRtmpUrl
func (c *Chat) ReplaceLiveStoryRtmpUrl(client *Client) (*RtmpUrl, error) {
return client.ReplaceLiveStoryRtmpUrl(c.Id)
}
// ReplacePrimaryInviteLink is a helper method for Client.ReplacePrimaryChatInviteLink
func (c *Chat) ReplacePrimaryInviteLink(client *Client) (*ChatInviteLink, error) {
return client.ReplacePrimaryChatInviteLink(c.Id)
}
// ReplaceVideoRtmpUrl is a helper method for Client.ReplaceVideoChatRtmpUrl
func (c *Chat) ReplaceVideoRtmpUrl(client *Client) (*RtmpUrl, error) {
return client.ReplaceVideoChatRtmpUrl(c.Id)
}
// Report is a helper method for Client.ReportChat
func (c *Chat) Report(client *Client, messageIds []int64, optionId []byte, text string) (ReportChatResult, error) {
return client.ReportChat(c.Id, messageIds, optionId, text)
}
// ReportPhoto is a helper method for Client.ReportChatPhoto
func (c *Chat) ReportPhoto(client *Client, fileId int32, reason ReportReason, text string) error {
return client.ReportChatPhoto(c.Id, fileId, reason, text)
}
// ReportSponsoredMessage is a helper method for Client.ReportChatSponsoredMessage
func (c *Chat) ReportSponsoredMessage(client *Client, messageId int64, optionId []byte) (ReportSponsoredResult, error) {
return client.ReportChatSponsoredMessage(c.Id, messageId, optionId)
}
// ReportMessageReactions is a helper method for Client.ReportMessageReactions
func (c *Chat) ReportMessageReactions(client *Client, messageId int64, senderId MessageSender) error {
return client.ReportMessageReactions(c.Id, messageId, senderId)
}
// ResendMessages is a helper method for Client.ResendMessages
func (c *Chat) ResendMessages(client *Client, messageIds []int64, paidMessageStarCount int64, opts *ResendMessagesOpts) (*Messages, error) {
return client.ResendMessages(c.Id, messageIds, paidMessageStarCount, opts)
}
// RevokeInviteLink is a helper method for Client.RevokeChatInviteLink
func (c *Chat) RevokeInviteLink(client *Client, inviteLink string) (*ChatInviteLinks, error) {
return client.RevokeChatInviteLink(c.Id, inviteLink)
}
// SaveApplicationLogEvent is a helper method for Client.SaveApplicationLogEvent
func (c *Chat) SaveApplicationLogEvent(client *Client, data JsonValue, typeField string) error {
return client.SaveApplicationLogEvent(c.Id, data, typeField)
}
// SearchMembers is a helper method for Client.SearchChatMembers
func (c *Chat) SearchMembers(client *Client, limit int32, query string, opts *SearchChatMembersOpts) (*ChatMembers, error) {
return client.SearchChatMembers(c.Id, limit, query, opts)
}
// SearchMessages is a helper method for Client.SearchChatMessages
func (c *Chat) SearchMessages(client *Client, fromMessageId int64, limit int32, offset int32, query string, opts *SearchChatMessagesOpts) (*FoundChatMessages, error) {
return client.SearchChatMessages(c.Id, fromMessageId, limit, offset, query, opts)
}
// SearchRecentLocationMessages is a helper method for Client.SearchChatRecentLocationMessages
func (c *Chat) SearchRecentLocationMessages(client *Client, limit int32) (*Messages, error) {
return client.SearchChatRecentLocationMessages(c.Id, limit)
}
// SearchSecretMessages is a helper method for Client.SearchSecretMessages
func (c *Chat) SearchSecretMessages(client *Client, limit int32, offset string, query string, opts *SearchSecretMessagesOpts) (*FoundMessages, error) {
return client.SearchSecretMessages(c.Id, limit, offset, query, opts)
}
// SendBotStartMessage is a helper method for Client.SendBotStartMessage
func (c *Chat) SendBotStartMessage(client *Client, botUserId int64, parameter string) (*Message, error) {
return client.SendBotStartMessage(botUserId, c.Id, parameter)
}
// SendBusinessMessage is a helper method for Client.SendBusinessMessage
func (c *Chat) SendBusinessMessage(client *Client, businessConnectionId string, effectId int64, inputMessageContent InputMessageContent, opts *SendBusinessMessageOpts) (*BusinessMessage, error) {
return client.SendBusinessMessage(businessConnectionId, c.Id, effectId, inputMessageContent, opts)
}
// SendBusinessMessageAlbum is a helper method for Client.SendBusinessMessageAlbum
func (c *Chat) SendBusinessMessageAlbum(client *Client, businessConnectionId string, effectId int64, inputMessageContents []InputMessageContent, opts *SendBusinessMessageAlbumOpts) (*BusinessMessages, error) {
return client.SendBusinessMessageAlbum(businessConnectionId, c.Id, effectId, inputMessageContents, opts)
}
// SendAction is a helper method for Client.SendChatAction
func (c *Chat) SendAction(client *Client, businessConnectionId string, opts *SendChatActionOpts) error {
return client.SendChatAction(businessConnectionId, c.Id, opts)
}
// SendInlineQueryResultMessage is a helper method for Client.SendInlineQueryResultMessage
func (c *Chat) SendInlineQueryResultMessage(client *Client, queryId int64, resultId string, opts *SendInlineQueryResultMessageOpts) (*Message, error) {
return client.SendInlineQueryResultMessage(c.Id, queryId, resultId, opts)
}
// SendMessage is a helper method for Client.SendMessage
func (c *Chat) SendMessage(client *Client, inputMessageContent InputMessageContent, opts *SendMessageOpts) (*Message, error) {
return client.SendMessage(c.Id, inputMessageContent, opts)
}
// SendMessageAlbum is a helper method for Client.SendMessageAlbum
func (c *Chat) SendMessageAlbum(client *Client, inputMessageContents []InputMessageContent, opts *SendMessageAlbumOpts) (*Messages, error) {
return client.SendMessageAlbum(c.Id, inputMessageContents, opts)
}
// SendQuickReplyShortcutMessages is a helper method for Client.SendQuickReplyShortcutMessages
func (c *Chat) SendQuickReplyShortcutMessages(client *Client, sendingId int32, shortcutId int32) (*Messages, error) {
return client.SendQuickReplyShortcutMessages(c.Id, sendingId, shortcutId)
}
// SendTextMessageDraft is a helper method for Client.SendTextMessageDraft
func (c *Chat) SendTextMessageDraft(client *Client, draftId int64, forumTopicId int32, text *FormattedText) error {
return client.SendTextMessageDraft(c.Id, draftId, forumTopicId, text)
}
// SetBusinessMessageIsPinned is a helper method for Client.SetBusinessMessageIsPinned
func (c *Chat) SetBusinessMessageIsPinned(client *Client, businessConnectionId string, messageId int64, opts *SetBusinessMessageIsPinnedOpts) error {
return client.SetBusinessMessageIsPinned(businessConnectionId, c.Id, messageId, opts)
}
// SetAccentColor is a helper method for Client.SetChatAccentColor
func (c *Chat) SetAccentColor(client *Client) error {
return client.SetChatAccentColor(c.AccentColorId, c.BackgroundCustomEmojiId, c.Id)
}
// SetActiveStoriesList is a helper method for Client.SetChatActiveStoriesList
func (c *Chat) SetActiveStoriesList(client *Client, storyList StoryList) error {
return client.SetChatActiveStoriesList(c.Id, storyList)
}
// SetAffiliateProgram is a helper method for Client.SetChatAffiliateProgram
func (c *Chat) SetAffiliateProgram(client *Client, opts *SetChatAffiliateProgramOpts) error {
return client.SetChatAffiliateProgram(c.Id, opts)
}
// SetAvailableReactions is a helper method for Client.SetChatAvailableReactions
func (c *Chat) SetAvailableReactions(client *Client) error {
return client.SetChatAvailableReactions(c.AvailableReactions, c.Id)
}
// SetBackground is a helper method for Client.SetChatBackground
func (c *Chat) SetBackground(client *Client, darkThemeDimming int32, opts *SetChatBackgroundOpts) error {
return client.SetChatBackground(c.Id, darkThemeDimming, opts)
}
// SetClientData is a helper method for Client.SetChatClientData
func (c *Chat) SetClientData(client *Client) error {
return client.SetChatClientData(c.Id, c.ClientData)
}