telegram_chatbot 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +1 -0
  4. data/Rakefile +22 -0
  5. data/app/assets/config/telegram_chatbot_manifest.js +4 -0
  6. data/app/assets/images/telegram_chatbot/telegram_bot/bot_father.png +0 -0
  7. data/app/assets/images/telegram_chatbot/telegram_bot/bot_name.png +0 -0
  8. data/app/assets/images/telegram_chatbot/telegram_bot/bot_token.png +0 -0
  9. data/app/assets/images/telegram_chatbot/telegram_bot/bot_username.png +0 -0
  10. data/app/assets/images/telegram_chatbot/telegram_bot/group_step1.png +0 -0
  11. data/app/assets/images/telegram_chatbot/telegram_bot/group_step2.png +0 -0
  12. data/app/assets/images/telegram_chatbot/telegram_bot/group_step3.png +0 -0
  13. data/app/assets/images/telegram_chatbot/telegram_bot/group_step4.png +0 -0
  14. data/app/assets/images/telegram_chatbot/telegram_bot/group_step5.png +0 -0
  15. data/app/assets/images/telegram_chatbot/telegram_bot/newbot.png +0 -0
  16. data/app/assets/images/telegram_chatbot/telegram_bot/setting.png +0 -0
  17. data/app/assets/images/telegram_chatbot/telegram_bot/telegram_off.png +0 -0
  18. data/app/assets/images/telegram_chatbot/telegram_bot/telegram_on.png +0 -0
  19. data/app/assets/javascripts/telegram_chatbot/application.js +9 -0
  20. data/app/assets/stylesheets/telegram_chatbot/application.scss +18 -0
  21. data/app/assets/stylesheets/telegram_chatbot/telegram_bots.scss +97 -0
  22. data/app/controllers/telegram_chatbot/application_controller.rb +5 -0
  23. data/app/controllers/telegram_chatbot/telegram_bots_controller.rb +32 -0
  24. data/app/controllers/telegram_chatbot/webhooks_controller.rb +38 -0
  25. data/app/helpers/telegram_chatbot/application_helper.rb +24 -0
  26. data/app/helpers/telegram_chatbot/telegram_bots_helper.rb +4 -0
  27. data/app/jobs/telegram_chatbot/application_job.rb +4 -0
  28. data/app/mailers/telegram_chatbot/application_mailer.rb +6 -0
  29. data/app/models/telegram_chatbot/application_record.rb +5 -0
  30. data/app/models/telegram_chatbot/chat_group.rb +18 -0
  31. data/app/models/telegram_chatbot/notification.rb +26 -0
  32. data/app/models/telegram_chatbot/telegram_bot.rb +22 -0
  33. data/app/views/telegram_chatbot/telegram_bots/help.haml +72 -0
  34. data/app/views/telegram_chatbot/telegram_bots/show.haml +25 -0
  35. data/app/workers/telegram_chatbot/notification_worker.rb +13 -0
  36. data/config/initializers/assets.rb +1 -0
  37. data/config/initializers/simple_form.rb +176 -0
  38. data/config/initializers/simple_form_bootstrap.rb +440 -0
  39. data/config/initializers/telegram.rb +9 -0
  40. data/config/locales/share.en.yml +37 -0
  41. data/config/locales/share.km.yml +37 -0
  42. data/config/locales/simple_form.en.yml +31 -0
  43. data/config/locales/telegram_bot.en.yml +38 -0
  44. data/config/locales/telegram_bot.km.yml +38 -0
  45. data/config/routes.rb +11 -0
  46. data/db/migrate/20210425084114_create_telegram_chatbot_telegram_bots.rb +12 -0
  47. data/db/migrate/20210425084127_create_telegram_chatbot_chat_groups.rb +16 -0
  48. data/lib/tasks/telegram_chatbot_tasks.rake +4 -0
  49. data/lib/telegram_chatbot/engine.rb +9 -0
  50. data/lib/telegram_chatbot/version.rb +3 -0
  51. data/lib/telegram_chatbot.rb +10 -0
  52. data/lib/templates/erb/scaffold/_form.html.erb +15 -0
  53. metadata +270 -0
@@ -0,0 +1,37 @@
1
+ km:
2
+ shared:
3
+ no_data_found: មិនមានទិន្នន័យ
4
+ use_plus_to_add_item: សូមប្រើប៊ូតុង (+) ដើម្បីបន្ថែមទិន្នន័យ!
5
+ edit: កែតម្រូវ
6
+ delete: លុប
7
+ cancel: បោះបង់
8
+ save: រក្សាទុក
9
+ back: ថយក្រោយ
10
+ done: រួចរាល់
11
+ reset: កំណត់ឡើងវិញ
12
+ cannot_be_blank: មិនអាចទទេរ
13
+ is_invalid_value: គឺជាតម្លៃមិនត្រឹមត្រូវ
14
+ value_should_be_from_to: "តម្លៃចាប់ពី %{from} រហូតដល់ %{to}"
15
+ search: ស្វែងរក
16
+ please_select: សូមជ្រើសរើស
17
+ status_on: បើក
18
+ status_off: បិទ
19
+ setup: កំណត់
20
+ change: ផ្លាស់ប្ដូរ
21
+ learn_more: មើលបន្ថែម
22
+ need_help: ត្រូវការជំនួយ?
23
+ no_result_found: រកមិនឃើញលទ្ធផល
24
+ apply: អនុវត្ត
25
+ unlock: ដោះសោ
26
+ add_new: បង្កើតថ្មី
27
+ pagination_title: "បង្ហាញទិន្ន័យ <b>%{from}</b> - <b>%{to}</b> នៃចំនួនសរុប <b>%{total}</b>"
28
+ number: លេខរៀង
29
+ import_from_file: បញ្ចូលទិន្នន័យពី File
30
+ download_sample_form: ទាញយកទម្រង់គំរូ
31
+ are_you_sure_to_delete: តើអ្នកប្រាកដជាលុបវាឬ?
32
+ confirm_logout: តើអ្នកពិតជាចង់ចាកចេញឬទេ?
33
+ name: ឈ្មោះ
34
+ close: បិទ
35
+ view_detail: មើលលម្អិត
36
+ created_at: កាលបរិច្ឆេទបង្កើត
37
+ updated_at: កាលបរិច្ឆេទធ្វើបច្ចុប្បន្នភាព
@@ -0,0 +1,31 @@
1
+ en:
2
+ simple_form:
3
+ "yes": 'Yes'
4
+ "no": 'No'
5
+ required:
6
+ text: 'required'
7
+ mark: '*'
8
+ # You can uncomment the line below if you need to overwrite the whole required html.
9
+ # When using html, text and mark won't be used.
10
+ # html: '<abbr title="required">*</abbr>'
11
+ error_notification:
12
+ default_message: "Please review the problems below:"
13
+ # Examples
14
+ # labels:
15
+ # defaults:
16
+ # password: 'Password'
17
+ # user:
18
+ # new:
19
+ # email: 'E-mail to sign in.'
20
+ # edit:
21
+ # email: 'E-mail.'
22
+ # hints:
23
+ # defaults:
24
+ # username: 'User name to sign in.'
25
+ # password: 'No special characters, please.'
26
+ # include_blanks:
27
+ # defaults:
28
+ # age: 'Rather not say'
29
+ # prompts:
30
+ # defaults:
31
+ # age: 'Select your age'
@@ -0,0 +1,38 @@
1
+ en:
2
+ telegram_bot:
3
+ telegram_bot: 'Telegram Bot'
4
+ token: 'Token'
5
+ username: 'User name'
6
+ actived: 'Actived'
7
+ setup_instruction: 'Please setup your telegram bot'
8
+ valid_bot: 'Valid bot and turn on'
9
+ invalid_bot: 'Invalid or turn off bot'
10
+ enabled_notification: 'Enabled notification'
11
+ you_can_configure_your_bot: 'You can configure your bot to communicate with people using the Telegram notification.'
12
+ visit_bot_father_to_create_newbot: 'Visit the Bot Father to create a new Telegram bot'
13
+ create_new_bot: 'Create a new Telegram bot'
14
+ using_the_bot_father: 'using the Bot Father.'
15
+ to_create_a_newbot: 'To create a new Telegram bot'
16
+ send_command: 'send command'
17
+ specify_a_friendly_name: 'Specify a friendly name'
18
+ give_the_bot_a_friendly_name: 'Give the Telegram bot a friendly name for displaying in contact details and elsewhere.'
19
+ specify_a_username: 'Specify a username'
20
+ give_the_bot_a_unique_username: 'Give the Telegram bot a unique username.'
21
+ username_note: "Note: The Username is a short name, to be used in mentions and t.me links. Usernames are 5-32 characters long and are case insensitive, but may only include Latin characters, numbers, and underscores. Your bot's username must end in 'bot', e.g. 'tetris_bot' or 'TetrisBot'."
22
+ copy_the_access_token: 'Copy the access token'
23
+ copy_the_bot_access_token: "Copy the Telegram bot's access token."
24
+ token_note: "Note: The token is a string along the lines of <code>110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALD</code> saw that is required to authorize the bot and send requests to the Bot API. Keep your token secure and store it safely, it can be used by anyone to control your bot."
25
+ enter_the_bot_token: "Enter the Telegram bot's access token"
26
+ go_to_setting: "Go to <b>Setting</b> menu and click the <b class='badge badge-info'>Setup</b> button."
27
+ enable_telegram_notification: "Enable telegram notification and fill in token and username information then click button <button class='btn btn-primary btn-sm'>save</button>"
28
+ telegram_chat_group: 'Telegram Chat Group'
29
+ to_add_group_chat: 'To add telegram bot to Telegram chat group, first go to Telegram app and focus on your group'
30
+ add_member: 'Add memeber'
31
+ to_add_member: 'Click on vertical 3 dots button to list drop down menu, and choose Add Memebers'
32
+ search_bot_name: 'Search bot name'
33
+ to_search_bot_name: 'Search your bot name, click on the found item, and click on button "ADD"'
34
+ added_to_the_group: 'Added to the group'
35
+ successfully_added_to_group: 'The bot is successfully added to the group'
36
+ added_group_to_system: 'Added group to the system'
37
+ successfully_added_to_system: 'The group is automatically added to the system'
38
+ need_help: Need help?
@@ -0,0 +1,38 @@
1
+ km:
2
+ telegram_bot:
3
+ telegram_bot: 'Telegram Bot'
4
+ token: 'Token'
5
+ username: 'ឈ្មោះអ្នកប្រើប្រាស់'
6
+ actived: 'Actived'
7
+ setup_instruction: 'សូមរៀបចំ Telegram bot របស់អ្នក'
8
+ valid_bot: 'Bot ដំណើរការ'
9
+ invalid_bot: 'Bot មិនត្រឹមត្រូវ ឬបានបិទ'
10
+ enabled_notification: 'Enabled notification'
11
+ you_can_configure_your_bot: 'អ្នកអាចកំណត់រចនាសម្ព័ន្ធ bot របស់អ្នកដើម្បីទាក់ទងជាមួយមនុស្សដោយប្រើ Telegram notification.'
12
+ visit_bot_father_to_create_newbot: 'ចូលទៅកាន់ Bot Father ដើម្បីបង្កើត Telegram bot'
13
+ create_new_bot: 'ដើម្បីបង្កើត Telegram bot'
14
+ using_the_bot_father: 'សូមប្រើ Bot Father។'
15
+ to_create_a_newbot: 'ដើម្បីបង្កើត Telegram bot'
16
+ send_command: 'សូមផ្ញើពាក្យបញ្ជា'
17
+ specify_a_friendly_name: 'បញ្ជាក់ឈ្មោះ'
18
+ give_the_bot_a_friendly_name: 'ដាក់ឈ្មោះ Telegram bot ឱ្យងាយសម្រាប់បង្ហាញព័ត៌មាននៅទំនាក់ទំនងនិងកន្លែងផ្សេងទៀត។'
19
+ specify_a_username: 'បញ្ជាក់ឈ្មោះអ្នកប្រើ'
20
+ give_the_bot_a_unique_username: 'ដាក់ឈ្មោះ username ដែលមិនជាន់ឈ្មោះអ្នកដ៏ទៃ'
21
+ username_note: "ចំណាំ: The Username is a short name, to be used in mentions and t.me links. Usernames are 5-32 characters long and are case insensitive, but may only include Latin characters, numbers, and underscores. Your bot's username must end in 'bot', e.g. 'tetris_bot' or 'TetrisBot'."
22
+ copy_the_access_token: 'ចម្លង the access token'
23
+ copy_the_bot_access_token: "ចម្លង the Telegram bot's access token."
24
+ token_note: "ចំណាំ: The token is a string along the lines of <code>110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALD</code> saw that is required to authorize the bot and send requests to the Bot API. Keep your token secure and store it safely, it can be used by anyone to control your bot."
25
+ enter_the_bot_token: "បញ្ចូល the Telegram bot's access token"
26
+ go_to_setting: "ចូលទៅកាន់ <b>Setting</b> ហើយចុចប៊ូតុង <b class='badge badge-info'>Setup</b>។"
27
+ enable_telegram_notification: "ចុចបើក telegram notification ហើយបញ្ចូលព័ត៌មាន token និង username ហើយចុចប៊ូតុង <button class='btn btn-primary btn-sm'>save</button>"
28
+ telegram_chat_group: 'ក្រុមជជែកក្នុង Telegram'
29
+ to_add_group_chat: 'ដើម្បីបញ្ចូល Telegram bot ទៅក្នុងក្រុមជជែក Telegram, ដំបូងចូលទៅកាន់កម្មវិធី Telegram ហើយរើសក្រុមដែលអ្នកចង់បាន'
30
+ add_member: 'បន្ថែមសមាជិក'
31
+ to_add_member: 'ចុចលើប៊ូតុង ចុចបី ហើយជ្រើសរើស Add Memebers'
32
+ search_bot_name: 'ស្វែងរកឈ្មោះរបស់ Bot'
33
+ to_search_bot_name: 'ស្វែងរកឈ្មោះរបស់ Bot ហើយចុចលើលទ្ធផលដែលរកឃើញ និងចុចលើប៊ូតុង "ADD"'
34
+ added_to_the_group: 'បានបញ្ចូលទៅក្នុងក្រុម'
35
+ successfully_added_to_group: 'bot ត្រូវបានបញ្ចូលក្នុងក្រុមដោយជោគជ័យ'
36
+ added_group_to_system: 'បានបញ្ចូលទៅក្នុងប្រព័ន្ធ'
37
+ successfully_added_to_system: 'ឈ្មោះក្រុមត្រូវបានបញ្ចូលក្នុងប្រព័ន្ធដោយខ្លួនឯង'
38
+ need_help: ត្រូវការជំនួយ?
data/config/routes.rb ADDED
@@ -0,0 +1,11 @@
1
+ TelegramChatbot::Engine.routes.draw do
2
+ root 'telegram_bots#show'
3
+
4
+ resource :telegram_bots, only: [:show], path: '/bot' do
5
+ put :upsert, on: :collection
6
+ get :help, on: :collection
7
+ end
8
+
9
+ # Telegram
10
+ telegram_webhook TelegramChatbot::WebhooksController
11
+ end
@@ -0,0 +1,12 @@
1
+ class CreateTelegramChatbotTelegramBots < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :telegram_chatbot_telegram_bots do |t|
4
+ t.string :token
5
+ t.string :username
6
+ t.boolean :enabled, default: false
7
+ t.boolean :actived, default: false
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,16 @@
1
+ class CreateTelegramChatbotChatGroups < ActiveRecord::Migration[6.0]
2
+ def change
3
+ create_table :telegram_chatbot_chat_groups do |t|
4
+ t.string :title
5
+ t.string :chat_id
6
+ t.boolean :actived, default: true
7
+ t.text :reason
8
+ t.string :provider
9
+ t.string :chat_type, default: "group"
10
+ t.string :bot_token
11
+ t.string :bot_username
12
+
13
+ t.timestamps
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :telegram_chatbot do
3
+ # # Task goes here
4
+ # end
@@ -0,0 +1,9 @@
1
+ module TelegramChatbot
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace TelegramChatbot
4
+
5
+ config.generators do |g|
6
+ g.test_framework :rspec
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ module TelegramChatbot
2
+ VERSION = '0.1.1'
3
+ end
@@ -0,0 +1,10 @@
1
+ require "telegram_chatbot/engine"
2
+
3
+ module TelegramChatbot
4
+ # Your code goes here...
5
+ require 'haml'
6
+ require 'jquery-rails'
7
+ require 'bootstrap'
8
+ require 'simple_form'
9
+ require 'telegram/bot'
10
+ end
@@ -0,0 +1,15 @@
1
+ <%# frozen_string_literal: true %>
2
+ <%%= simple_form_for(@<%= singular_table_name %>) do |f| %>
3
+ <%%= f.error_notification %>
4
+ <%%= f.error_notification message: f.object.errors[:base].to_sentence if f.object.errors[:base].present? %>
5
+
6
+ <div class="form-inputs">
7
+ <%- attributes.each do |attribute| -%>
8
+ <%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
9
+ <%- end -%>
10
+ </div>
11
+
12
+ <div class="form-actions">
13
+ <%%= f.button :submit %>
14
+ </div>
15
+ <%% end %>
metadata ADDED
@@ -0,0 +1,270 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: telegram_chatbot
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Sokly
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-04-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 6.0.3
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 6.0.3.5
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 6.0.3
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 6.0.3.5
33
+ - !ruby/object:Gem::Dependency
34
+ name: haml
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: haml-rails
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: jquery-rails
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: bootstrap
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: simple_form
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: sidekiq
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :runtime
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: telegram-bot
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: 0.15.3
124
+ type: :runtime
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "~>"
129
+ - !ruby/object:Gem::Version
130
+ version: 0.15.3
131
+ - !ruby/object:Gem::Dependency
132
+ name: rspec-rails
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: 4.0.1
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - "~>"
143
+ - !ruby/object:Gem::Version
144
+ version: 4.0.1
145
+ - !ruby/object:Gem::Dependency
146
+ name: factory_bot_rails
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ - !ruby/object:Gem::Dependency
160
+ name: shoulda-matchers
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
173
+ - !ruby/object:Gem::Dependency
174
+ name: pg
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ type: :development
181
+ prerelease: false
182
+ version_requirements: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
187
+ description: TelegramChatbot setting with chatgroup.
188
+ email:
189
+ - hengsokly23@gmail.com
190
+ executables: []
191
+ extensions: []
192
+ extra_rdoc_files: []
193
+ files:
194
+ - MIT-LICENSE
195
+ - README.md
196
+ - Rakefile
197
+ - app/assets/config/telegram_chatbot_manifest.js
198
+ - app/assets/images/telegram_chatbot/telegram_bot/bot_father.png
199
+ - app/assets/images/telegram_chatbot/telegram_bot/bot_name.png
200
+ - app/assets/images/telegram_chatbot/telegram_bot/bot_token.png
201
+ - app/assets/images/telegram_chatbot/telegram_bot/bot_username.png
202
+ - app/assets/images/telegram_chatbot/telegram_bot/group_step1.png
203
+ - app/assets/images/telegram_chatbot/telegram_bot/group_step2.png
204
+ - app/assets/images/telegram_chatbot/telegram_bot/group_step3.png
205
+ - app/assets/images/telegram_chatbot/telegram_bot/group_step4.png
206
+ - app/assets/images/telegram_chatbot/telegram_bot/group_step5.png
207
+ - app/assets/images/telegram_chatbot/telegram_bot/newbot.png
208
+ - app/assets/images/telegram_chatbot/telegram_bot/setting.png
209
+ - app/assets/images/telegram_chatbot/telegram_bot/telegram_off.png
210
+ - app/assets/images/telegram_chatbot/telegram_bot/telegram_on.png
211
+ - app/assets/javascripts/telegram_chatbot/application.js
212
+ - app/assets/stylesheets/telegram_chatbot/application.scss
213
+ - app/assets/stylesheets/telegram_chatbot/telegram_bots.scss
214
+ - app/controllers/telegram_chatbot/application_controller.rb
215
+ - app/controllers/telegram_chatbot/telegram_bots_controller.rb
216
+ - app/controllers/telegram_chatbot/webhooks_controller.rb
217
+ - app/helpers/telegram_chatbot/application_helper.rb
218
+ - app/helpers/telegram_chatbot/telegram_bots_helper.rb
219
+ - app/jobs/telegram_chatbot/application_job.rb
220
+ - app/mailers/telegram_chatbot/application_mailer.rb
221
+ - app/models/telegram_chatbot/application_record.rb
222
+ - app/models/telegram_chatbot/chat_group.rb
223
+ - app/models/telegram_chatbot/notification.rb
224
+ - app/models/telegram_chatbot/telegram_bot.rb
225
+ - app/views/telegram_chatbot/telegram_bots/help.haml
226
+ - app/views/telegram_chatbot/telegram_bots/show.haml
227
+ - app/workers/telegram_chatbot/notification_worker.rb
228
+ - config/initializers/assets.rb
229
+ - config/initializers/simple_form.rb
230
+ - config/initializers/simple_form_bootstrap.rb
231
+ - config/initializers/telegram.rb
232
+ - config/locales/share.en.yml
233
+ - config/locales/share.km.yml
234
+ - config/locales/simple_form.en.yml
235
+ - config/locales/telegram_bot.en.yml
236
+ - config/locales/telegram_bot.km.yml
237
+ - config/routes.rb
238
+ - db/migrate/20210425084114_create_telegram_chatbot_telegram_bots.rb
239
+ - db/migrate/20210425084127_create_telegram_chatbot_chat_groups.rb
240
+ - lib/tasks/telegram_chatbot_tasks.rake
241
+ - lib/telegram_chatbot.rb
242
+ - lib/telegram_chatbot/engine.rb
243
+ - lib/telegram_chatbot/version.rb
244
+ - lib/templates/erb/scaffold/_form.html.erb
245
+ homepage: https://github.com/hengsokly/telegram_chatbot
246
+ licenses:
247
+ - MIT
248
+ metadata:
249
+ homepage_uri: https://github.com/hengsokly/telegram_chatbot
250
+ source_code_uri: https://github.com/hengsokly/telegram_chatbot
251
+ post_install_message:
252
+ rdoc_options: []
253
+ require_paths:
254
+ - lib
255
+ required_ruby_version: !ruby/object:Gem::Requirement
256
+ requirements:
257
+ - - ">="
258
+ - !ruby/object:Gem::Version
259
+ version: '0'
260
+ required_rubygems_version: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
265
+ requirements: []
266
+ rubygems_version: 3.2.16
267
+ signing_key:
268
+ specification_version: 4
269
+ summary: TelegramChatbot setting with chatgroup.
270
+ test_files: []