Skip to content

Commit e77ea65

Browse files
committed
Bump docs
1 parent d03c653 commit e77ea65

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

docs/danog/DialogId/DialogId.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,16 @@ Represents the type of a bot API dialog ID.
2323

2424
* `danog\DialogId\DialogId::SECRET_CHAT`: Dialog type: secret chat.
2525

26+
* `danog\DialogId\DialogId::MONOFORUM`: Dialog type: monoforum.
27+
2628
## Properties
2729
* `$name`: `string`
2830

2931
## Method list:
3032
* [`getType(integer $id): self`](#getType)
3133
* [`isSupergroupOrChannel(int $id): bool`](#isSupergroupOrChannel)
34+
* [`isSupergroupOrChannelOrMonoforum(int $id): bool`](#isSupergroupOrChannelOrMonoforum)
35+
* [`isMonoforum(int $id): bool`](#isMonoforum)
3236
* [`isChat(int $id): bool`](#isChat)
3337
* [`isUser(int $id): bool`](#isUser)
3438
* [`isSecretChat(int $id): bool`](#isSecretChat)
@@ -38,8 +42,11 @@ Represents the type of a bot API dialog ID.
3842
* [`toSupergroupOrChannelId(int $id): int`](#toSupergroupOrChannelId)
3943
* [`fromChatId(int $id): int`](#fromChatId)
4044
* [`toChatId(int $id): int`](#toChatId)
45+
* [`fromMonoforumId(int $id): int`](#fromMonoforumId)
46+
* [`toMonoforumId(int $id): int`](#toMonoforumId)
4147
* [`fromUserId(int $id): int`](#fromUserId)
4248
* [`toUserId(int $id): int`](#toUserId)
49+
* [`toMTProtoId(int $id): int`](#toMTProtoId)
4350
* [`cases(): array`](#cases)
4451

4552
## Methods:
@@ -65,6 +72,28 @@ Parameters:
6572

6673

6774

75+
### <a name="isSupergroupOrChannelOrMonoforum"></a> `isSupergroupOrChannelOrMonoforum(int $id): bool`
76+
77+
Checks whether the provided bot API ID is a supergroup, channel or monoforum.
78+
79+
80+
Parameters:
81+
82+
* `$id`: `int`
83+
84+
85+
86+
### <a name="isMonoforum"></a> `isMonoforum(int $id): bool`
87+
88+
Checks whether the provided bot API ID is a monoforum.
89+
90+
91+
Parameters:
92+
93+
* `$id`: `int`
94+
95+
96+
6897
### <a name="isChat"></a> `isChat(int $id): bool`
6998

7099
Checks whether the provided bot API ID is a chat ID.
@@ -168,6 +197,28 @@ Parameters:
168197

169198

170199

200+
### <a name="fromMonoforumId"></a> `fromMonoforumId(int $id): int`
201+
202+
Convert MTProto monoforum ID to bot API monoforum ID.
203+
204+
205+
Parameters:
206+
207+
* `$id`: `int` MTProto monoforum ID
208+
209+
210+
211+
### <a name="toMonoforumId"></a> `toMonoforumId(int $id): int`
212+
213+
Convert bot API monoforum ID to MTProto monoforum ID.
214+
215+
216+
Parameters:
217+
218+
* `$id`: `int` Bot API monoforum ID
219+
220+
221+
171222
### <a name="fromUserId"></a> `fromUserId(int $id): int`
172223

173224
Convert MTProto user ID to bot API user ID.
@@ -190,6 +241,17 @@ Parameters:
190241

191242

192243

244+
### <a name="toMTProtoId"></a> `toMTProtoId(int $id): int`
245+
246+
Convert bot API ID to MTProto ID (automatically detecting the correct type).
247+
248+
249+
Parameters:
250+
251+
* `$id`: `int` Bot API dialog ID
252+
253+
254+
193255
### <a name="cases"></a> `cases(): array`
194256

195257

0 commit comments

Comments
 (0)