mirror of
https://github.com/mautrix/telegram.git
synced 2026-05-17 07:25:46 +03:00
commands: fix image pack upload room id check
This commit is contained in:
@@ -75,7 +75,7 @@ func (t *TelegramClient) fnListEmojiPacks(ce *commands.Event) {
|
||||
}
|
||||
|
||||
func (t *TelegramClient) fnUploadEmojiPack(ce *commands.Event) {
|
||||
if len(ce.Args) < 3 || !strings.HasPrefix(ce.Args[0], "!") {
|
||||
if len(ce.Args) < 3 || !strings.HasPrefix(ce.Args[1], "!") {
|
||||
ce.Reply("Usage: `$cmdprefix emoji-pack upload <telegram shortcode> <room ID> <state key>`")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user