Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Implemented support for normal keyboards #143

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

MattiaEffendi
Copy link

@MattiaEffendi MattiaEffendi commented Sep 8, 2019

I've added the support for "standard" keyboards natively.
List of things i still have to do:

  • Code
  • Documentation

A test code could be the following:

@bot.command("keyboard")
def kb(chat, message):
	kb = botogram.Keyboard(one_time=True)
	kb[0].text("Simple text")
	kb[1].request_contact("Request contact")
	kb[2].request_location("Request location")
	chat.send("Message with a standard keyboard", attach=kb)
	
@bot.command("rem")
def rem(chat, message):
	chat.send("Keyboard removed", force_reply=True, remove_keyboard=True)

@MarcoBuster
Copy link
Member

Hi @MattiaEffendi and thank you for your PR!
You should check the Travis-CI log, because it seems that there are errors. Please write the documentation and the changelog according to the overall style. If you have questions write in our botogram devs group :)

Copy link
Member

@matteob99 matteob99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing doc and changelog

{"remove_keyboard": remove_keyboard}
)
if selective is not None:
args["reply_markup"] = json.dumps({"selective": selective})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with this you replace you need to append

if force_reply is not None:
args["reply_markup"] = json.dumps({"force_reply": force_reply})
if selective is not None:
args["reply_markup"] = json.dumps({"selective": selective})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with this you replace you need to append

@MarcoBuster
Copy link
Member

Hi @MattiaEffendi! Updates? :D

Copy link
Member

@matteob99 matteob99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing doc and changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants