We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffd1ca2 commit 233b3d5Copy full SHA for 233b3d5
docs/4.updates.md
@@ -205,6 +205,21 @@ void update(fb::Update& u) {
205
206
// и так далее
207
}
208
+
209
+ // или
210
211
+ switch ((size_t)u.type()) {
212
+ case tg_apih::message:
213
+ break;
214
215
+ case tg_apih::channel_post:
216
217
218
+ case tg_apih::chat_join_request:
219
220
221
+ // и так далее
222
+ }
223
224
```
225
0 commit comments