Compare commits

...

16 Commits

Author SHA1 Message Date
0a804d32ef Update setup.py 2024-01-04 00:48:36 +02:00
e3db7eb3e9 Update setup.py 2024-01-04 00:48:23 +02:00
031dbdbbdd Update setup.py 2024-01-04 00:48:04 +02:00
8ff45fa3c6 Update setup.py 2024-01-04 00:35:12 +02:00
9c2a6460e8 Update requirements.txt 2024-01-04 00:34:48 +02:00
PyMaster
a2e713aeee
Update README.md 2023-08-07 19:34:23 +03:00
PyMaster
779af9144b
Update README.md 2022-10-29 10:12:32 +03:00
PyMaster
dd33b6c5e9
Update README.md 2022-10-06 18:29:23 +03:00
PyMaster
4e6a513b46
Create README.md 2022-09-22 15:56:11 +03:00
PyMaster
5148c7226f
Update README.md 2022-09-08 21:48:02 +03:00
PyMaster
74cea1172e
Update README.md 2022-09-01 18:40:29 +03:00
PyMaster
db22fe851f
Update README.md 2022-08-06 15:51:27 +03:00
PyMaster
7d94ce38a2
Update README.md 2022-06-07 15:49:09 +03:00
PyMaster
f147705d4e
Add files via upload 2022-02-01 15:23:57 +03:00
PyMaster
4c06e6c5fe
Delete inline_query_results.py 2022-01-25 18:06:37 +03:00
PyMaster
79cebe32b0
Add files via upload 2022-01-25 17:27:02 +03:00
6 changed files with 45 additions and 68 deletions

View File

@ -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

View File

@ -1,5 +1,5 @@
__title__ = 'pykeyboard'
__version__ = '0.1.4'
__version__ = '0.1.5'
__author__ = 'PyMaster'
__license__ = 'MIT License'
__copyright__ = 'Copyright 2020-2022 PyMaster'

View File

@ -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)

View File

@ -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)

View File

@ -1,2 +1 @@
Pyrogram==1.1.1
TgCrypto==1.2.2
pyrogram~=2.3.16

View File

@ -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',
)