File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,6 +152,11 @@ def add_channel_to_database(channel_username)
152152 subscribers_count : channel_info [ :member_count ]
153153 )
154154
155+ # Если канал был деактивирован - активируем его
156+ if !channel . active?
157+ channel . activate!
158+ end
159+
155160 # Если канал еще не вступал, запускаем задачу для вступления
156161 if channel . not_joined?
157162 Channels ::BotJoinJob . perform_later ( channel . id )
Original file line number Diff line number Diff line change 3636 Unfortunately, I don't understand this type of message yet.
3737 Please send me a text link to the channel you want to follow
3838 to receive announcements about important news only, without the fluff.
39+
40+ channels :
41+ add :
42+ success : " ✅ Channel %{channel} added!\n\n Total channels: %{count}"
43+ updated : " ✅ Channel %{channel} updated!"
Original file line number Diff line number Diff line change 144144 success : " ✅ Канал %{channel} добавлен!\n\n Всего каналов: %{count}"
145145 suggest_another : " 💪 Отлично!\n Добавляй следующий канал - присылай ссылку или имя"
146146 already_subscribed : " ℹ️ Ты уже подписан на канал %{channel}. Присылай ссылку на другой"
147+ updated : " ✅ Канал %{channel} обновлён!"
147148 not_found : " ❌ Канал %{channel} не найден или недоступен"
148149 invalid_format : " ❌ Неверный формат. Отправь имя канала (@channelname) или ссылку (t.me/channelname)"
149150 error : " ❌ Ошибка при добавлении канала: %{error}"
You can’t perform that action at this time.
0 commit comments