Commit Graph

117 Commits

Author SHA1 Message Date
Maxim Lebedev 8e352132b0
👷 Added Travis CI configuration 2017-11-21 01:51:01 +05:00
Maxim Lebedev 757b965460
Added inline query support
For searching stickers by emoji or getting all stickers in personal user pack
2017-11-20 19:32:25 +05:00
Maxim Lebedev d8bc61cca5
🐛 Fixed 'index exists' and 'not found' errors in requests to database
Just check this errors and return alternative data for stablity
2017-11-20 19:31:21 +05:00
Maxim Lebedev 168a243665
🚧 Added prototype actions and messages
Just implement simple debugging replies on commands and actions and implement database manipulation with user data
2017-11-20 16:39:43 +05:00
Maxim Lebedev 9cb32d4ccc
🗃️ Added user states constants for database key 2017-11-20 16:37:18 +05:00
Maxim Lebedev 20fc4f9a8a
🗃️ Added database and his methods
Added general database methods like getting current state or stickers, update indexes and other stuff
2017-11-20 15:31:54 +05:00
Maxim Lebedev 87975dba38
🔨 Removed one-time used webhook variables
Just check strings on init step and get UString in getUpdatesChannel method without using global variables
2017-11-20 14:47:45 +05:00
Maxim Lebedev ad8b0853ab
🚧 Added 'messages' and 'commands' functions for filtering 'Message' updates
Added support of general commands and messages with stickers
2017-11-20 14:47:41 +05:00
Maxim Lebedev d2fcbf8a59
🐛 Fixed 'invalid memory address' panic to accessToken string in configuration 2017-11-20 14:10:01 +05:00
Maxim Lebedev 8eb8712c0d
🎨 Added some comments and format the code 2017-11-20 14:03:47 +05:00
Maxim Lebedev 483dfe4878
🔧 Ignore certificate files
Hide production 'cert.key' and 'cert.pem' for security reasons
2017-11-20 14:03:47 +05:00
Maxim Lebedev 7d9585ac24
Added getUpdatesChannel method
This funtion check webhook flag and create updates channel via Webhook or LongPolling
2017-11-20 14:03:46 +05:00
Maxim Lebedev 221427c3ed
🔧 Added Makefile
Makefile contains some snippets for most used commands and secure developer from typos errors
2017-11-20 14:03:46 +05:00
Maxim Lebedev 02d843d85c
🔧 Added configuration file
Added yaml configuration example and ignored production config for security reason
2017-11-20 14:03:46 +05:00
Maxim Lebedev b51e215805
🚧 Added minimal package functions
init() and main() functions for initialize configuration and run new bot access_token check
2017-11-20 14:03:41 +05:00
Maxim Lebedev 08ce4329de
Added errCheck method
Simple helper for rough debugging builds. All or panic!
2017-11-20 12:02:01 +05:00
Maxim Lebedev a2beab8ebf
🎉 Initial commit 2017-11-20 11:29:58 +05:00