From 6bb47e9a449a0058ffd9c8bd1605116ec1ff5472 Mon Sep 17 00:00:00 2001 From: Advik Singh Somvanshi Date: Sun, 22 May 2022 01:38:32 +0530 Subject: [PATCH] Update create_invite_link.py Added .types while importing inline markup keyboards (fix) Removed threading import since message is not to be deleted --- examples/create_invite_link.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/create_invite_link.py b/examples/create_invite_link.py index 71c6ed4..9413549 100644 --- a/examples/create_invite_link.py +++ b/examples/create_invite_link.py @@ -1,7 +1,7 @@ -import telebot, threading +import telebot from time import sleep, time -from telebot import InlineKeyboardMarkup as ikm #Only for creating Inline Buttons, not necessary for creating Invite Links -from telebot import InlineKeyboardButton as ikb #Only for creating Inline Buttons, not necessary for creating Invite Links +from telebot.types import InlineKeyboardMarkup as ikm #Only for creating Inline Buttons, not necessary for creating Invite Links +from telebot.types import InlineKeyboardButton as ikb #Only for creating Inline Buttons, not necessary for creating Invite Links Token = "api_token" #Your Bot Access Token Group_ID = -1234567890 #Group ID for which invite link is to be created