Skip to content

Commit 6bb47e9

Browse files
authored
Update create_invite_link.py
Added .types while importing inline markup keyboards (fix) Removed threading import since message is not to be deleted
1 parent e9d1d98 commit 6bb47e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/create_invite_link.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import telebot, threading
1+
import telebot
22
from time import sleep, time
3-
from telebot import InlineKeyboardMarkup as ikm #Only for creating Inline Buttons, not necessary for creating Invite Links
4-
from telebot import InlineKeyboardButton as ikb #Only for creating Inline Buttons, not necessary for creating Invite Links
3+
from telebot.types import InlineKeyboardMarkup as ikm #Only for creating Inline Buttons, not necessary for creating Invite Links
4+
from telebot.types import InlineKeyboardButton as ikb #Only for creating Inline Buttons, not necessary for creating Invite Links
55

66
Token = "api_token" #Your Bot Access Token
77
Group_ID = -1234567890 #Group ID for which invite link is to be created

0 commit comments

Comments
 (0)