-
-
Notifications
You must be signed in to change notification settings - Fork 128
/
options.gen.go
213 lines (190 loc) · 5.08 KB
/
options.gen.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
// Code generated by mkentity, DO NOT EDIT.
package styling
import (
"context"
"github.com/gotd/td/tg"
)
var (
_ = tg.Invoker(nil)
_ = context.Context(nil)
)
// Unknown formats text as Unknown entity.
//
// See https://core.telegram.org/constructor/messageEntityUnknown.
func Unknown(s string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.Unknown(s)
return nil
})
}
// Mention formats text as Mention entity.
//
// See https://core.telegram.org/constructor/messageEntityMention.
func Mention(s string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.Mention(s)
return nil
})
}
// Hashtag formats text as Hashtag entity.
//
// See https://core.telegram.org/constructor/messageEntityHashtag.
func Hashtag(s string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.Hashtag(s)
return nil
})
}
// BotCommand formats text as BotCommand entity.
//
// See https://core.telegram.org/constructor/messageEntityBotCommand.
func BotCommand(s string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.BotCommand(s)
return nil
})
}
// URL formats text as URL entity.
//
// See https://core.telegram.org/constructor/messageEntityUrl.
func URL(s string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.URL(s)
return nil
})
}
// Email formats text as Email entity.
//
// See https://core.telegram.org/constructor/messageEntityEmail.
func Email(s string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.Email(s)
return nil
})
}
// Bold formats text as Bold entity.
//
// See https://core.telegram.org/constructor/messageEntityBold.
func Bold(s string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.Bold(s)
return nil
})
}
// Italic formats text as Italic entity.
//
// See https://core.telegram.org/constructor/messageEntityItalic.
func Italic(s string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.Italic(s)
return nil
})
}
// Code formats text as Code entity.
//
// See https://core.telegram.org/constructor/messageEntityCode.
func Code(s string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.Code(s)
return nil
})
}
// Pre formats text as Pre entity.
//
// See https://core.telegram.org/constructor/messageEntityPre.
func Pre(s string, language string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.Pre(s, language)
return nil
})
}
// TextURL formats text as TextURL entity.
//
// See https://core.telegram.org/constructor/messageEntityTextUrl.
func TextURL(s string, uRL string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.TextURL(s, uRL)
return nil
})
}
// MentionName formats text as MentionName entity.
//
// See https://core.telegram.org/constructor/inputMessageEntityMentionName.
func MentionName(s string, userID tg.InputUserClass) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.MentionName(s, userID)
return nil
})
}
// Phone formats text as Phone entity.
//
// See https://core.telegram.org/constructor/messageEntityPhone.
func Phone(s string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.Phone(s)
return nil
})
}
// Cashtag formats text as Cashtag entity.
//
// See https://core.telegram.org/constructor/messageEntityCashtag.
func Cashtag(s string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.Cashtag(s)
return nil
})
}
// Underline formats text as Underline entity.
//
// See https://core.telegram.org/constructor/messageEntityUnderline.
func Underline(s string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.Underline(s)
return nil
})
}
// Strike formats text as Strike entity.
//
// See https://core.telegram.org/constructor/messageEntityStrike.
func Strike(s string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.Strike(s)
return nil
})
}
// Blockquote formats text as Blockquote entity.
//
// See https://core.telegram.org/constructor/messageEntityBlockquote.
func Blockquote(s string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.Blockquote(s)
return nil
})
}
// BankCard formats text as BankCard entity.
//
// See https://core.telegram.org/constructor/messageEntityBankCard.
func BankCard(s string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.BankCard(s)
return nil
})
}
// Spoiler formats text as Spoiler entity.
//
// See https://core.telegram.org/constructor/messageEntitySpoiler.
func Spoiler(s string) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.Spoiler(s)
return nil
})
}
// CustomEmoji formats text as CustomEmoji entity.
//
// See https://core.telegram.org/constructor/messageEntityCustomEmoji.
func CustomEmoji(s string, documentID int64) StyledTextOption {
return styledTextOption(s, func(b *textBuilder) error {
b.CustomEmoji(s, documentID)
return nil
})
}