コード例 #1
0
def get_reply_markup(username):
    url = 't.me/share/url?url=' + quote(SHARE_BUTTON_TEXT.format(username=username))
    buttons = [[
        InlineKeyboardButton('Search again', switch_inline_query_current_chat=''),
        InlineKeyboardButton( "Join Channel", url="https://t.me/BM_Links", ),
    ]]
    return InlineKeyboardMarkup(buttons)
コード例 #2
0
ファイル: inline.py プロジェクト: gtdsad/Inline-search
def get_reply_markup(username):
    url = 't.me/share/url?url=' + quote(SHARE_BUTTON_TEXT.format(username=username))
    buttons = [[
        InlineKeyboardButton('Search again', switch_inline_query_current_chat=''),
        InlineKeyboardButton('Share bot', url=url),
    ]]
    return InlineKeyboardMarkup(buttons)
コード例 #3
0
ファイル: inline.py プロジェクト: rider420/Media-Search-bot
def get_reply_markup(username):
    buttons = [[
        InlineKeyboardButton(
            text='Share bot',
            url='t.me/share/url?url=' +
            quote(SHARE_BUTTON_TEXT.format(username=username))),
    ]]
    return InlineKeyboardMarkup(buttons)
コード例 #4
0
def get_reply_markup(username):
    url = 't.me/share/url?url=' + quote(
        SHARE_BUTTON_TEXT.format(username=username))
    buttons = [[
        InlineKeyboardButton('🔍 𝑺𝒆𝒂𝒓𝒄𝒉 𝒂𝒈𝒂𝒊𝒏',
                             switch_inline_query_current_chat=''),
        InlineKeyboardButton('💡 𝑺𝒉𝒂𝒓𝒆 𝒘𝒊𝒕𝒉 𝑭𝒓𝒊𝒆𝒏𝒅𝒔', url=url),
    ]]
    return InlineKeyboardMarkup(buttons)
コード例 #5
0
def get_reply_markup(username):
    buttons = [[
        InlineKeyboardButton('නැවතත්', switch_inline_query_current_chat=''),
        InlineKeyboardButton(
            text='share',
            url='t.me/share/url?url=' +
            quote(SHARE_BUTTON_TEXT.format(username=username))),
    ]]
    return InlineKeyboardMarkup(buttons)
コード例 #6
0
def get_reply_markup(username, query):
    url = 't.me/share/url?url=' + quote(
        SHARE_BUTTON_TEXT.format(username=username))
    buttons = [[
        InlineKeyboardButton('Search again',
                             switch_inline_query_current_chat=query),
        InlineKeyboardButton('Share bot', url=url),
        InlineKeyboardButton('Group', url="https://t.me/MOVIECLUB_CHAT"),
    ]]
    return InlineKeyboardMarkup(buttons)
コード例 #7
0
def get_reply_markup(username, query):
    url = 't.me/share/url?url=' + quote(
        SHARE_BUTTON_TEXT.format(username=username))
    buttons = [[
        InlineKeyboardButton('SEARCH AGAiN',
                             switch_inline_query_current_chat=query)
    ],
               [
                   InlineKeyboardButton('SEARCH MOViES',
                                        switch_inline_query_current_chat=""),
               ]]
    return InlineKeyboardMarkup(buttons)
コード例 #8
0
def get_reply_markup(username, query):
    url = 'https://t.me/OMG_info' + quote(
        SHARE_BUTTON_TEXT.format(username=username))
    buttons = [[
        InlineKeyboardButton('Search again',
                             switch_inline_query_current_chat=query),
        InlineKeyboardButton(
            'Channel',
            url="https://t.me/OMG_info",
        )
    ]]
    return InlineKeyboardMarkup(buttons)
コード例 #9
0
ファイル: inline.py プロジェクト: dawood7919/Media-Search-bot
def get_reply_markup(username):
    url = 't.me/share/url?url=' + quote(
        SHARE_BUTTON_TEXT.format(username=username))
    buttons = [[
        InlineKeyboardButton(' مشاركه في ', url=url),
        InlineKeyboardButton(' بحث ', switch_inline_query_current_chat=''),
    ],
               [
                   InlineKeyboardButton(' طلب كتب ',
                                        url="https://t.me/Dawoodfbot"),
                   InlineKeyboardButton(' مساعدة ',
                                        url="https://t.me/islam_dawood"),
               ]]
    return InlineKeyboardMarkup(buttons)
コード例 #10
0
ファイル: inline.py プロジェクト: piku-adhi/Media-Search-bot
def get_reply_markup(username):
    url = 't.me/share/url?url=' + quote(SHARE_BUTTON_TEXT.format(username=username))
コード例 #11
0
def get_reply_markup(username):
    url = 't.me/share/url?url=' + quote(
        SHARE_BUTTON_TEXT.format(username=username))
    buttons = [[]]
    return InlineKeyboardMarkup(buttons)