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 aa41047 commit 1350cbdCopy full SHA for 1350cbd
botsfwmodels/chat_key.go
@@ -7,13 +7,13 @@ func NewChatKey(botID, chatID string) ChatKey {
7
if botID == "" {
8
panic("botID is required, got empty string")
9
}
10
- if botID == "" {
+ if chatID == "" {
11
panic("chatID is required, got empty string")
12
13
return ChatKey{BotID: botID, ChatID: chatID}
14
15
16
-// ChatKey is a key for a chat that consist of bot ID and chat ID.
+// ChatKey is a key for a chat that consists of bot ID and chat ID.
17
type ChatKey struct {
18
// BotID an id of a bot that owns this chat
19
BotID string
0 commit comments