Compare commits
16 Commits
Author | SHA1 | Date | |
---|---|---|---|
0a804d32ef | |||
e3db7eb3e9 | |||
031dbdbbdd | |||
8ff45fa3c6 | |||
9c2a6460e8 | |||
|
a2e713aeee | ||
|
779af9144b | ||
|
dd33b6c5e9 | ||
|
4e6a513b46 | ||
|
5148c7226f | ||
|
74cea1172e | ||
|
db22fe851f | ||
|
7d94ce38a2 | ||
|
f147705d4e | ||
|
4c06e6c5fe | ||
|
79cebe32b0 |
|
@ -7,6 +7,8 @@
|
|||
[![Downloads](https://pepy.tech/badge/pykeyboard)](https://pepy.tech/project/pykeyboard)
|
||||
![GitHub](https://img.shields.io/github/license/pystorage/pykeyboard)
|
||||
|
||||
<p><h2>🎉 Thank you for 1M downloads 🎉 I love you...🥰</h2></p>
|
||||
|
||||
</div>
|
||||
|
||||
# Pykeyboard
|
||||
|
@ -30,9 +32,9 @@
|
|||
|
||||
# What's new?
|
||||
|
||||
- Added a new method to <b>InlineKeyboard</b> for working with <a href="#pagination-inline-keyboard"><ins>pagination</ins></a>. The <b>InlinePaginationKeyboard</b> class will be removed in a future version.
|
||||
- Overriding the <b>KeyboardButton</b>, <b>ReplyKeyboardRemove</b>, <b>ForceReply</b>, <b>InlineKeyboardButton</b> methods in <b>ReplyButton</b>, <b>ReplyKeyboardRemove</b>, <b>ForceReply</b>, <b>InlineButton</b>.
|
||||
- Added new method <b>InlineKeyboard</b>. To send language <a href="#languages-inline-keyboard"><ins>selection keyboard</ins></a>.
|
||||
- Added new method <b>InlineKeyboard</b>. To send <a href="#languages-inline-keyboard"><ins>language selection keyboard</ins></a>.
|
||||
- Minor changes due to update in Pyrogram.
|
||||
|
||||
# Installation
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
__title__ = 'pykeyboard'
|
||||
__version__ = '0.1.4'
|
||||
__version__ = '0.1.5'
|
||||
__author__ = 'PyMaster'
|
||||
__license__ = 'MIT License'
|
||||
__copyright__ = 'Copyright 2020-2022 PyMaster'
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
from pyrogram.types import InlineQueryResultArticle,InputTextMessageContent
|
||||
from uuid import uuid4
|
||||
|
||||
class InlineQueryResults(list):
|
||||
def __init__(self):
|
||||
self.results = list()
|
||||
super().__init__(self.results)
|
||||
|
||||
|
||||
def add(self,title,message_text,message_parse_mode = None,message_disable_web_page_preview = None, url = None, description = None, thumb_url = None,reply_markup = None):
|
||||
self.results.append(
|
||||
InlineQueryResultArticle(
|
||||
id = uuid4(),
|
||||
title = title,
|
||||
input_message_content = InputTextMessageContent(message_text=message_text,parse_mode=message_parse_mode,disable_web_page_preview=message_disable_web_page_preview),
|
||||
url = url,
|
||||
description = description,
|
||||
thumb_url = thumb_url,
|
||||
reply_markup = reply_markup
|
||||
)
|
||||
)
|
||||
|
||||
super().__init__(self.results)
|
|
@ -4,13 +4,14 @@ from pyrogram.types import (
|
|||
|
||||
class ReplyKeyboard(ReplyKeyboardMarkup):
|
||||
def __init__(self, resize_keyboard=None, one_time_keyboard=None,
|
||||
selective=None, row_width=3):
|
||||
selective=None, placeholder=None, row_width=3):
|
||||
self.keyboard = list()
|
||||
super().__init__(
|
||||
keyboard=self.keyboard,
|
||||
resize_keyboard=resize_keyboard,
|
||||
one_time_keyboard=one_time_keyboard,
|
||||
selective=selective
|
||||
selective=selective,
|
||||
placeholder=placeholder
|
||||
)
|
||||
self.row_width = row_width
|
||||
|
||||
|
@ -39,5 +40,5 @@ class ReplyKeyboardRemove(ReplyKeyboardRemove):
|
|||
|
||||
|
||||
class ForceReply(ForceReply):
|
||||
def __init__(self, selective=None):
|
||||
super().__init__(selective=selective)
|
||||
def __init__(self, selective=None, placeholder=None):
|
||||
super().__init__(selective=selective, placeholder=placeholder)
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
Pyrogram==1.1.1
|
||||
TgCrypto==1.2.2
|
||||
pyrogram~=2.3.16
|
70
setup.py
70
setup.py
|
@ -1,36 +1,34 @@
|
|||
from os import path
|
||||
from setuptools import setup
|
||||
|
||||
|
||||
this_directory = path.abspath(path.dirname(__file__))
|
||||
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
|
||||
long_description = f.read()
|
||||
|
||||
setup(
|
||||
name='pykeyboard',
|
||||
version='0.1.4',
|
||||
author='PyMaster',
|
||||
author_email='',
|
||||
description='Best Keyboard and Pagination for the Pyrogram Library.',
|
||||
license='MIT',
|
||||
classifiers=[
|
||||
'Programming Language :: Python',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.5',
|
||||
'Programming Language :: Python :: 3.6',
|
||||
'Programming Language :: Python :: 3.7',
|
||||
'Programming Language :: Python :: 3.8',
|
||||
'Programming Language :: Python :: 3.9',
|
||||
'Topic :: Internet',
|
||||
'Topic :: Communications',
|
||||
'Topic :: Communications :: Chat',
|
||||
'Topic :: Software Development :: Libraries',
|
||||
'Topic :: Software Development :: Libraries :: Python Modules'
|
||||
],
|
||||
keywords='telegram pyrogram keyboard bot userbot',
|
||||
url='https://github.com/pystorage/pykeyboard',
|
||||
packages=['pykeyboard'],
|
||||
install_requires=['pyrogram', 'tgcrypto'],
|
||||
long_description=long_description,
|
||||
long_description_content_type='text/markdown',
|
||||
)
|
||||
from os import path
|
||||
from setuptools import setup
|
||||
|
||||
|
||||
this_directory = path.abspath(path.dirname(__file__))
|
||||
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
|
||||
long_description = f.read()
|
||||
|
||||
setup(
|
||||
name='pykeyboard',
|
||||
version='0.1.7',
|
||||
author='PyMaster',
|
||||
author_email='',
|
||||
description='Best Keyboard and Pagination for the Pyrogram Library.',
|
||||
license='MIT',
|
||||
classifiers=[
|
||||
'Programming Language :: Python',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3.8',
|
||||
'Programming Language :: Python :: 3.9',
|
||||
'Programming Language :: Python :: 3.10',
|
||||
'Topic :: Internet',
|
||||
'Topic :: Communications',
|
||||
'Topic :: Communications :: Chat',
|
||||
'Topic :: Software Development :: Libraries',
|
||||
'Topic :: Software Development :: Libraries :: Python Modules'
|
||||
],
|
||||
keywords='telegram pyrogram keyboard bot userbot',
|
||||
url='https://github.com/pystorage/pykeyboard',
|
||||
packages=['pykeyboard'],
|
||||
install_requires=['pyrofork'],
|
||||
long_description=long_description,
|
||||
long_description_content_type='text/markdown',
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user