Skip to content

Instantly share code, notes, and snippets.

View mkotb's full-sized avatar

Mazen mkotb

  • Vancouver, BC, Canada.
View GitHub Profile
@mkotb
mkotb / keybase.md
Created July 12, 2016 21:01
keybase.md

Keybase proof

I hereby claim:

  • I am mkotb on github.
  • I am mkotb (https://keybase.io/mkotb) on keybase.
  • I have a public key whose fingerprint is B7EA 6671 5A8E EE6E 1BA7 254B BE8A 729A 12F6 60B0

To claim this, I am signing this object:

@mkotb
mkotb / example.java
Last active March 6, 2017 11:07
Telegram Inline Menu Example
InlineMenuBuilder builder = InlineMenu.builder(bot, event.getChat())
.allowedUser(event.getMessage().getSender())
.message(SendableTextMessage.markdown("*Cool Message*"))
.newRow()
.toggleButton()
.toggleCallback((button, newValue) -> "The value is " + newValue)
.newRow()
.inputButton("Click for name")
.buttonCallback((button) -> "Send me your name as a text!")
.textCallback((button, input) -> button.setText("Your name is " + input))
@mkotb
mkotb / keybase.md
Created August 27, 2017 03:35
keybase.md

Keybase proof

I hereby claim:

  • I am mkotb on github.
  • I am mkotb (https://keybase.io/mkotb) on keybase.
  • I have a public key whose fingerprint is 190C 92EE CAFD 9F9A E659 F293 EA0B 8821 8B6D F9A6

To claim this, I am signing this object: